nalgebra/src/base/variance_test.rs

8 lines
152 B
Rust
Raw Normal View History

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