pub enum RankMethod {
Average,
Min,
Max,
Ordinal,
Dense,
}Expand description
Strategy for handling tied values when ranking.
Variants§
Average
Tied values receive the average of their would-be ranks (default for most statistical methods).
Min
Tied values receive the minimum rank in the group.
Max
Tied values receive the maximum rank in the group.
Ordinal
Tied values receive sequential ranks (first occurrence gets lower rank).
Dense
Like Min, but ranks always increase by 1 (no gaps).
Trait Implementations§
Source§impl Clone for RankMethod
impl Clone for RankMethod
Source§fn clone(&self) -> RankMethod
fn clone(&self) -> RankMethod
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 RankMethod
impl Debug for RankMethod
Source§impl PartialEq for RankMethod
impl PartialEq for RankMethod
impl Copy for RankMethod
impl Eq for RankMethod
impl StructuralPartialEq for RankMethod
Auto Trait Implementations§
impl Freeze for RankMethod
impl RefUnwindSafe for RankMethod
impl Send for RankMethod
impl Sync for RankMethod
impl Unpin for RankMethod
impl UnsafeUnpin for RankMethod
impl UnwindSafe for RankMethod
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