pub struct OrdinalLevel { /* private fields */ }Expand description
A level on a declared rubric, low to high, as a distribution over levels or a single level. Its expectation is an index summary only.
Implementations§
Source§impl OrdinalLevel
impl OrdinalLevel
pub fn from_distribution(d: Distribution) -> Self
pub fn from_label(l: SelectedLabel) -> Self
pub fn levels(&self) -> &[String]
pub fn has_distribution(&self) -> bool
Sourcepub fn expectation(&self) -> f64
pub fn expectation(&self) -> f64
sum(index * mass) in level order, or the single level’s index. An
index summary, not an interval quantity.
Trait Implementations§
Source§impl Clone for OrdinalLevel
impl Clone for OrdinalLevel
Source§impl Debug for OrdinalLevel
impl Debug for OrdinalLevel
Source§impl PartialEq for OrdinalLevel
impl PartialEq for OrdinalLevel
impl StructuralPartialEq for OrdinalLevel
Auto Trait Implementations§
impl Freeze for OrdinalLevel
impl RefUnwindSafe for OrdinalLevel
impl Send for OrdinalLevel
impl Sync for OrdinalLevel
impl Unpin for OrdinalLevel
impl UnsafeUnpin for OrdinalLevel
impl UnwindSafe for OrdinalLevel
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