pub struct KendallTau;Expand description
Kendall Tau-a rank correlation.
Implementations§
Source§impl KendallTau
impl KendallTau
Sourcepub fn compute(x: &[f64], y: &[f64]) -> Result<f64, MultivariateError>
pub fn compute(x: &[f64], y: &[f64]) -> Result<f64, MultivariateError>
Compute Kendall Tau-b using O(n log n) merge-sort algorithm (Knight 2006).
Counts discordant pairs via merge-sort-based inversion counting on the y-ranks after sorting by x-ranks. Tau-b accounts for ties on both x and y through the denominator √((n₀−n₁)(n₀−n₂)).
Trait Implementations§
Source§impl CorrelationMethod for KendallTau
impl CorrelationMethod for KendallTau
Auto Trait Implementations§
impl Freeze for KendallTau
impl RefUnwindSafe for KendallTau
impl Send for KendallTau
impl Sync for KendallTau
impl Unpin for KendallTau
impl UnsafeUnpin for KendallTau
impl UnwindSafe for KendallTau
Blanket Implementations§
impl<T> Allocation for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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