Skip to content

Commit

Permalink
Fix no_std build
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Apr 30, 2021
1 parent 08c47b1 commit 4cb75ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/weighted_mean.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#[cfg(feature = "serde1")] use serde::{Serialize, Deserialize};
use num_traits::Float;
use super::{MeanWithError, Estimate, Merge};

/// Estimate the weighted and unweighted arithmetic mean of a sequence of
Expand Down Expand Up @@ -284,7 +283,7 @@ impl WeightedMeanWithError {
#[cfg_attr(doc_cfg, doc(cfg(any(feature = "std", feature = "libm"))))]
#[inline]
pub fn error(&self) -> f64 {
Float::sqrt(self.variance_of_weighted_mean())
num_traits::Float::sqrt(self.variance_of_weighted_mean())
}
}

Expand Down

0 comments on commit 4cb75ce

Please sign in to comment.