pub struct ModeResult {
pub modes: Vec<f64>,
pub frequency: usize,
pub unique_count: usize,
}Expand description
Result of the mode calculation.
For continuous or near-continuous data, returns all values that appear most frequently. For discrete data with a clear mode, returns a single value.
Fields§
§modes: Vec<f64>The mode value(s). May contain multiple values if there are ties.
frequency: usizeThe frequency of the mode(s).
unique_count: usizeTotal number of unique values in the dataset.
Trait Implementations§
Source§impl Clone for ModeResult
impl Clone for ModeResult
Source§fn clone(&self) -> ModeResult
fn clone(&self) -> ModeResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ModeResult
impl Debug for ModeResult
Source§impl PartialEq for ModeResult
impl PartialEq for ModeResult
Source§impl Serialize for ModeResult
impl Serialize for ModeResult
impl StructuralPartialEq for ModeResult
Auto Trait Implementations§
impl Freeze for ModeResult
impl RefUnwindSafe for ModeResult
impl Send for ModeResult
impl Sync for ModeResult
impl Unpin for ModeResult
impl UnsafeUnpin for ModeResult
impl UnwindSafe for ModeResult
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