Commit Graph

10 Commits

Author SHA1 Message Date
Vinzent Steinberg 3853de8481 Fix clippy warnings 2019-07-08 17:32:44 +02:00
Vinzent Steinberg c9829a1279 Clean up tests 2019-07-08 17:32:42 +02:00
Vinzent Steinberg 9401f41558 Use Rust 2018 idioms 2019-07-08 16:04:59 +02:00
Vinzent Steinberg 547149bfd2 Fix serde support
* Use correct Cargo flags.
* Fix tests.
* Fix histogram serialization.
2019-01-22 14:29:29 +01:00
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
Eh2406 cac986d87e Add test 2017-12-20 16:46:50 -05:00
Vinzent Steinberg 5d6d67bac9 Move `add` and `merge` to trait
This should make it possible to write more generic code.
2017-06-25 15:39:12 +02:00
Vinzent Steinberg 20521ac22c Disable some noisy clippy warnings 2017-05-30 10:54:14 +02:00
Vinzent Steinberg bea79374e3 Move random tests to separate file 2017-05-28 23:46:15 +02:00
Vinzent Steinberg 30622be775 Rename average to mean for consistency 2017-05-28 21:13:47 +02:00