pub struct WeightedHistogram {
pub binning: Binning,
pub sums: Vec<f64>,
pub underflow: f64,
pub overflow: f64,
}Expand description
Fields§
§binning: BinningThe binning.
sums: Vec<f64>Summed weight per bin.
underflow: f64Weight of samples below binning.lo.
overflow: f64Weight of samples at or above binning.hi (and NaN samples).
Implementations§
Source§impl WeightedHistogram
impl WeightedHistogram
Sourcepub fn merge(&mut self, other: &WeightedHistogram)
pub fn merge(&mut self, other: &WeightedHistogram)
Trait Implementations§
Source§impl Clone for WeightedHistogram
impl Clone for WeightedHistogram
Source§fn clone(&self) -> WeightedHistogram
fn clone(&self) -> WeightedHistogram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeightedHistogram
impl Debug for WeightedHistogram
Source§impl<'de> Deserialize<'de> for WeightedHistogram
impl<'de> Deserialize<'de> for WeightedHistogram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WeightedHistogram
impl PartialEq for WeightedHistogram
Source§impl Serialize for WeightedHistogram
impl Serialize for WeightedHistogram
impl StructuralPartialEq for WeightedHistogram
Auto Trait Implementations§
impl Freeze for WeightedHistogram
impl RefUnwindSafe for WeightedHistogram
impl Send for WeightedHistogram
impl Sync for WeightedHistogram
impl Unpin for WeightedHistogram
impl UnsafeUnpin for WeightedHistogram
impl UnwindSafe for WeightedHistogram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more