Enable low-frequency RTW analyzer range
This commit is contained in:
1 parent
cbbeac5b0f
commit
48578c5919
10 files changed
+41
-34
No files matched your search
+4
-4
@@ -6,9 +6,9 @@
|
||||
use std::collections::VecDeque;
|
||||
|
||||
pub const RTW_THIRD_OCTAVE_CENTERS: &[f32] = &[
|
||||
20.0, 25.0, 31.5, 40.0, 50.0, 63.0, 80.0, 100.0, 125.0, 160.0, 200.0, 250.0, 315.0, 400.0,
|
||||
500.0, 630.0, 800.0, 1_000.0, 1_250.0, 1_600.0, 2_000.0, 2_500.0, 3_150.0, 4_000.0, 5_000.0,
|
||||
6_300.0, 8_000.0, 10_000.0, 12_500.0, 16_000.0, 20_000.0,
|
||||
5.0, 6.3, 8.0, 10.0, 12.5, 16.0, 20.0, 25.0, 31.5, 40.0, 50.0, 63.0, 80.0, 100.0, 125.0, 160.0,
|
||||
200.0, 250.0, 315.0, 400.0, 500.0, 630.0, 800.0, 1_000.0, 1_250.0, 1_600.0, 2_000.0, 2_500.0,
|
||||
3_150.0, 4_000.0, 5_000.0, 6_300.0, 8_000.0, 10_000.0, 12_500.0, 16_000.0, 20_000.0,
|
||||
];
|
||||
|
||||
/// Maps a rounded preferred label to its exact IEC base-ten center frequency.
|
||||
@@ -448,7 +448,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn third_octave_butterworth_has_correct_center_and_edges() {
|
||||
assert_eq!(RTW_THIRD_OCTAVE_CENTERS.len(), 31);
|
||||
assert_eq!(RTW_THIRD_OCTAVE_CENTERS.len(), 37);
|
||||
for &nominal_center in RTW_THIRD_OCTAVE_CENTERS {
|
||||
let center = exact_fractional_octave_center(nominal_center, 3);
|
||||
let (lower, upper) = fractional_octave_edges(center, 3);
|
||||
|
||||
Reference in new issue
Block a user