3个不稳定版本
使用旧的Rust 2015
| 0.2.0 | 2016年10月13日 |
|---|---|
| 0.1.1 | 2016年10月8日 |
| 0.1.0 | 2016年10月8日 |
12 in #dft
11KB
74 代码行
goertzel
Rust实现的Goertzel滤波器。
对于感兴趣的频率范围,Goertzel滤波器比FFT更快。
接口
-
pub fn filter_naive(input: &Vec<f64>, linear_freq: f64) -> Vec<Complex<f64>>仅应用滤波器方程并给出完整输出。
-
pub fn dft(input: &Vec<f64>, linear_freq: f64) -> Complex<f64>计算给定线性频率相关(最接近的)DFT项。
-
pub fn dft_power(input: &Vec<f64>, linear_freq: f64) -> f64计算给定DFT桶中的信号功率。
待办事项
依赖关系
~240KB