Improve test slightly
This commit is contained in:
parent
0d6cf939d1
commit
383c85c470
@ -43,6 +43,7 @@ fn simple() {
|
|||||||
assert_eq!(a.standardized_moment(1), 0.0);
|
assert_eq!(a.standardized_moment(1), 0.0);
|
||||||
assert_eq!(a.standardized_moment(2), 1.0);
|
assert_eq!(a.standardized_moment(2), 1.0);
|
||||||
assert_almost_eq!(a.sample_skewness(), 0.0, 1e-15);
|
assert_almost_eq!(a.sample_skewness(), 0.0, 1e-15);
|
||||||
|
assert_almost_eq!(a.standardized_moment(3), 0.0, 1e-15);
|
||||||
a.add(1.0);
|
a.add(1.0);
|
||||||
// skewness
|
// skewness
|
||||||
assert_almost_eq!(a.standardized_moment(3), 0.2795084971874741, 1e-15);
|
assert_almost_eq!(a.standardized_moment(3), 0.2795084971874741, 1e-15);
|
||||||
|
Loading…
Reference in New Issue
Block a user