Skip to content

Commit

Permalink
Fixes stddev.rs calculation. Prevents calculation for < 2 values
Browse files Browse the repository at this point in the history
  • Loading branch information
kevloui committed Aug 7, 2020
1 parent a69cbc4 commit 34d1827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amadeus-core/src/par_sink/stddev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ impl FolderSync<f64> for SDFolder<StepA> {
state.sd = state.variance.sqrt()
} else {
state.variance = f64::NAN;
state.sd = f64::NAN
}
}

Expand Down

0 comments on commit 34d1827

Please sign in to comment.