KS bug fix + new datasets

master
eugen.betke 2020-09-03 13:44:37 +02:00
parent 64ca83f3ca
commit ef0412b41b
5 changed files with 1755271 additions and 1755243 deletions

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

View File

@ -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