nalgebra/src/base/variance_test.rs

8 lines
155 B
Rust
Raw Normal View History

2023-04-24 05:46:06 +08:00
#[cfg(test)]
use crate::DVector;
#[test]
fn test_variance_new() {
let v = DVector::repeat(10_000, 100000000.1234);
assert_eq!(v.variance(), 0.0)
}