pub struct Histogram {
pub counts: Vec<u64>,
pub unscored: u64,
}Expand description
A test’s threshold-split cases per bin of confidence_bins, and the cases the rule abstains on
whatever the threshold (unscored, or above the cannot_tell cut). v1.2.
Fields§
§counts: Vec<u64>§unscored: u64Implementations§
Source§impl Histogram
impl Histogram
Sourcepub fn of(
bins: &[f64],
confidences: impl IntoIterator<Item = Option<f64>>,
) -> Option<Self>
pub fn of( bins: &[f64], confidences: impl IntoIterator<Item = Option<f64>>, ) -> Option<Self>
The histogram of confidences on bins. Pass None for a case the rule abstains on whatever
the threshold (unscored, or above rule.cannot_tell_above), as the issuer counts it. None when a confidence is
outside [0, 1] or bins has fewer than two edges.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Histogram
impl<'de> Deserialize<'de> for Histogram
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
impl Eq for Histogram
impl StructuralPartialEq for Histogram
Auto Trait Implementations§
impl Forget for Histogram
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnsafeUnpin for Histogram
impl UnwindSafe for Histogram
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