Struct rv::dist::KsTwoAsymptotic[][src]

pub struct KsTwoAsymptotic {}

Kolmogorov-Smirnov distribution where the number of samples, $N$, is assumed to be large This is the distribution of $\sqrt{N} D_n$ where $D_n = \sup_x |F_n(x) - F(x)|$ where $F$ is the true CDF and $F_n$ the emperical CDF.

Example

Calculate the Survival Function for a particular KS stat.

use rv::traits::*;
use rv::dist::KsTwoAsymptotic;

let ks = KsTwoAsymptotic::default();
let sf = ks.sf(&1.0);
const EXPECTED: f64 = 0.26999967167735456;
assert!((sf - EXPECTED).abs() < 1E-15);

Implementations

impl KsTwoAsymptotic[src]

pub fn new() -> Self[src]

Create a new KsTwoAsymptotic distribution

Trait Implementations

impl Cdf<f32> for KsTwoAsymptotic[src]

impl Cdf<f64> for KsTwoAsymptotic[src]

impl Clone for KsTwoAsymptotic[src]

impl ContinuousDistr<f32> for KsTwoAsymptotic[src]

impl ContinuousDistr<f64> for KsTwoAsymptotic[src]

impl Copy for KsTwoAsymptotic[src]

impl Debug for KsTwoAsymptotic[src]

impl Default for KsTwoAsymptotic[src]

impl Display for KsTwoAsymptotic[src]

impl InverseCdf<f32> for KsTwoAsymptotic[src]

impl InverseCdf<f64> for KsTwoAsymptotic[src]

impl PartialEq<KsTwoAsymptotic> for KsTwoAsymptotic[src]

impl Rv<f32> for KsTwoAsymptotic[src]

impl Rv<f64> for KsTwoAsymptotic[src]

impl StructuralPartialEq for KsTwoAsymptotic[src]

impl Support<f32> for KsTwoAsymptotic[src]

impl Support<f64> for KsTwoAsymptotic[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,