rust-average/tests
Vinzent Steinberg e4345f5046 impl FromIterator<&f64> and FromIterator<&(f64, f64)>
This allows to write

    let k: Kurtosis = a.iter().collect();

instead of

    let k: Kurtosis = a.iter().map(|x| *x).collect();

but breaks type inference for code like

    let m: Min = (1..6).map(Into::into).collect();

where

    let m: Min = (1..6).map(f64::from).collect();

has to be used instead.

Fixes #8.
2018-02-28 23:44:40 +01:00
..
kurtosis.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
macros.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
max.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
mean.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
min.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
moments.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
quantile.rs clippy 2017-12-20 16:59:51 -05:00
random.rs Move add and merge to trait 2017-06-25 15:39:12 +02:00
skewness.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
streaming_stats.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00
weighted_mean.rs impl FromIterator<&f64> and FromIterator<&(f64, f64)> 2018-02-28 23:44:40 +01:00