mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 04:20:00 +00:00
Compare commits
No commits in common. "2cd2e24f57ce483ecf5c711467fb659ee12964d4" and "8ffa278db839a8685b14312870a2f0bdeb95fede" have entirely different histories.
2cd2e24f57
...
8ffa278db8
@ -360,7 +360,6 @@ mod tests {
|
||||
|
||||
// <0 case
|
||||
assert_eq!(gamma_pdf_func(-1.0, 1.0, 1.0), 0.0);
|
||||
assert_eq!(gamma_cdf_func(-1.0, 1.0, 1.0), 0.0);
|
||||
}
|
||||
#[test]
|
||||
fn test_gamma_matrix() {
|
||||
@ -377,6 +376,11 @@ mod tests {
|
||||
let x = Matrix::filled(5, 5, 1.0);
|
||||
let expected = lower_incomplete_gamma_func(2.0, 1.0);
|
||||
let result = lower_incomplete_gamma(s, x);
|
||||
assert!((result.data()[0] - expected).abs() < 1e-7);
|
||||
assert!(
|
||||
(result.data()[0] - expected).abs() < 1e-7,
|
||||
"Expected: {}, Got: {}",
|
||||
expected,
|
||||
result.data()[0]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user