| Crates.io | pz_spectra |
| lib.rs | pz_spectra |
| version | 0.2.0 |
| created_at | 2025-11-02 04:26:41.787686+00 |
| updated_at | 2025-12-15 08:27:16.534711+00 |
| description | ezpz fft |
| homepage | |
| repository | https://codeberg.org/Wleddzig/pz_spectra |
| max_upload_size | |
| id | 1912657 |
| size | 21,566 |
ezpz fft, optional convolution, deconvolution and cross-correlation.
In your Cargo.toml:
[dependencies]
pz_spectra = "0.0.1"
# or with convolve:
# pz_spectra = { version = "0.0.1", features = ["convolve"] }
In your code:
use pz_spectra::{fft, ifft, to_complex}
// or with convolve
// use pz_spectra::{fft, ifft, convolve, to_complex, ConvolveMode};
let mut signal = to_complex(&[1.0, 2.0, 3.0]);
// in-place
fft(&mut signal);
ifft(&mut signal);
// let kernel = to_complex(&[1.0, 0.5]);
// convolve(ConvolveMode::Full, &mut signal, &kernel);
Memoize twiddle factors.