Fix moments benchmark

This commit is contained in:
Vinzent Steinberg 2018-07-11 15:52:57 +02:00
parent 34eddeec1e
commit b010d0cae6

View File

@ -33,7 +33,7 @@ fn bench_kurtosis(b: &mut Bencher) {
fn bench_moments(b: &mut Bencher) { fn bench_moments(b: &mut Bencher) {
let values = initialize_vec(); let values = initialize_vec();
b.iter(|| { b.iter(|| {
let m: average::Moments = values.iter().map(|x| *x).collect(); let m: average::Moments4 = values.iter().map(|x| *x).collect();
m m
}); });
} }