KS bug fix + new datasets
parent
64ca83f3ca
commit
ef0412b41b
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -42,7 +42,7 @@ pub fn test<T: Ord + Clone>(xs: &[T], ys: &[T], confidence: f64) -> Result<TestR
|
|||
// Only supports samples of size > 7.
|
||||
//assert!(xs.len() > 7 && ys.len() > 7);
|
||||
|
||||
if xs.len() > 7 && ys.len() > 7 {
|
||||
if !(xs.len() > 7 && ys.len() > 7) {
|
||||
return Err(String::from("Assertion violated: xs.len() > 7 && ys.len() > 7"));
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,7 @@ fn calculate_reject_probability(statistic: f64, n1: usize, n2: usize) -> Result<
|
|||
// Only supports samples of size > 7.
|
||||
// assert!(n1 > 7 && n2 > 7);
|
||||
|
||||
if n1 > 7 && n2 > 7 {
|
||||
if !(n1 > 7 && n2 > 7) {
|
||||
return Err(String::from("Assertion violated: n1 > 7 && n2 > 7"));
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@ pub fn calculate_critical_value(n1: usize, n2: usize, confidence: f64) -> Result
|
|||
|
||||
// Only supports samples of size > 7.
|
||||
//assert!(n1 > 7 && n2 > 7);
|
||||
if n1 > 7 && n2 > 7 {
|
||||
if !(n1 > 7 && n2 > 7) {
|
||||
return Err(String::from("Assertion violated: n1 > 7 && n2 > 7"));
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue