| Crates.io | windowfunctions |
| lib.rs | windowfunctions |
| version | 0.1.1 |
| created_at | 2025-02-21 20:57:58.672761+00 |
| updated_at | 2025-02-21 21:30:51.081297+00 |
| description | Common window functions for apodization |
| homepage | |
| repository | https://github.com/HEnquist/windowfunctions-rs |
| max_upload_size | |
| id | 1564716 |
| size | 32,786 |
Window functions for apodization.
The WindowFunctions library provides a variety of window functions used in signal processing to reduce spectral leakage. These window functions are essential for applications like spectrum analysis and filter design, where improving the frequency characteristics of the signal is crucial.
extern crate windowfunctions;
use windowfunctions::{WindowFunction, Symmetry, window};
fn main() {
let length = 1024;
let window_type = WindowFunction::Hamming;
let symmetry = Symmetry::Symmetric;
let window_iter = window::<f32>(length, window_type, symmetry);
for value in window_iter {
println!("{}", value);
}
}
extern crate windowfunctions;
use windowfunctions::{WindowFunction, Symmetry, window};
fn main() {
let length = 1024;
let window_type = WindowFunction::Hamming;
let symmetry = Symmetry::Symmetric;
let window_iter = window::<f32>(length, window_type, symmetry);
let window_vec: Vec<f32> = window_iter.into_iter().collect();
}
This library is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository.