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
3326a8bb9c
Update dependencies
2019-07-08 16:01:13 +02:00
Vinzent Steinberg
dc2d21bea9
Update dependencies
2019-01-18 15:55:37 +01:00
Vinzent Steinberg
7f8663c23e
Update dependencies
2018-07-06 10:31:26 +02: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
Vinzent Steinberg
20521ac22c
Disable some noisy clippy warnings
2017-05-30 10:54:14 +02:00
Vinzent Steinberg
30622be775
Rename average to mean for consistency
2017-05-28 21:13:47 +02:00
Vinzent Steinberg
19127cede7
Calculate average in terms of delta/n
...
This will avoid divisions in the inner loop when calculating higher
moments.
2017-05-28 20:30:05 +02:00
Vinzent Steinberg
962adb91d7
Rename Average
to AverageWithError
...
This anticipates an implementation that does not calculate the error.
2017-05-24 11:32:24 +02:00
Vinzent Steinberg
d25f267529
Move some tests from src to tests
2017-05-19 15:54:13 +02:00