Skip to content

Commit

Permalink
Cleans up stddev.rs done function
Browse files Browse the repository at this point in the history
  • Loading branch information
kevloui committed Aug 7, 2020
1 parent c1f362b commit 28ed8bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions amadeus-core/src/par_sink/stddev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ impl FolderSync<f64> for SDFolder<StepA> {

#[inline(always)]
fn done(&mut self, state: Self::State) -> Self::Done {
if state.count > 1 {
state.variance.sqrt()
} else {
f64::NAN
}
state.variance.sqrt()
}
}

Expand Down

0 comments on commit 28ed8bf

Please sign in to comment.