mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-10-04 15:19:25 +00:00
Add test for median_horizontal function to validate horizontal median calculation
This commit is contained in:
@@ -295,6 +295,10 @@ mod tests {
|
|||||||
|
|
||||||
let expected_v = vec![2.5, 3.5, 4.5];
|
let expected_v = vec![2.5, 3.5, 4.5];
|
||||||
assert_eq!(mv, expected_v, "{:?} expected: {:?}", expected_v, mv);
|
assert_eq!(mv, expected_v, "{:?} expected: {:?}", expected_v, mv);
|
||||||
|
|
||||||
|
let mh = median_horizontal(&x).column(0).to_vec();
|
||||||
|
let expected_h = vec![2.0, 5.0];
|
||||||
|
assert_eq!(mh, expected_h, "{:?} expected: {:?}", expected_h, mh);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Reference in New Issue
Block a user