Skip to content
Snippets Groups Projects
Commit 31dec325 authored by Stephen D's avatar Stephen D
Browse files

oops

parent fe41702f
No related branches found
No related tags found
1 merge request!1use iterator for input
Pipeline #2035 passed
......@@ -111,7 +111,7 @@ fn sine() {
let mag = p.start().add_samples(buf[..].iter()).finish_mag();
for testfreq in (0..30).map(|x| (x * 100) as f32) {
let p = Parameters::new(testfreq, 8000, 8000);
let testmag = p.mag(&buf[..].iter());
let testmag = p.mag(buf[..].iter());
println!("{testfreq:4}: {testmag:12.3}");
if (freq - testfreq).abs() > 100. {
println!("{mag} > 10*{testmag}");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment