Skip to content

Commit 34d1827

Browse files
committed
Fixes stddev.rs calculation. Prevents calculation for < 2 values
1 parent a69cbc4 commit 34d1827

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

amadeus-core/src/par_sink/stddev.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ impl FolderSync<f64> for SDFolder<StepA> {
7070
state.sd = state.variance.sqrt()
7171
} else {
7272
state.variance = f64::NAN;
73+
state.sd = f64::NAN
7374
}
7475
}
7576

0 commit comments

Comments
 (0)