[−][src]Struct rv::dist::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; use rand::SeedableRng; use rand::rngs::StdRng; let ks = KsTwoAsymptotic::default(); let sf = ks.sf(&1.0); const EXPECTED: f64 = 0.26999967167735456; assert!((sf - EXPECTED).abs() < 1E-15);
Methods
impl KsTwoAsymptotic
[src]
Trait Implementations
impl Cdf<f32> for KsTwoAsymptotic
[src]
impl Cdf<f64> for KsTwoAsymptotic
[src]
impl Clone for KsTwoAsymptotic
[src]
fn clone(&self) -> KsTwoAsymptotic
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn default() -> KsTwoAsymptotic
[src]
impl Display for KsTwoAsymptotic
[src]
impl<'_> From<&'_ KsTwoAsymptotic> for String
[src]
fn from(_kstwobign: &KsTwoAsymptotic) -> String
[src]
impl InverseCdf<f32> for KsTwoAsymptotic
[src]
fn invcdf(&self, p: f64) -> f32
[src]
fn quantile(&self, p: f64) -> X
[src]
fn interval(&self, p: f64) -> (X, X)
[src]
impl InverseCdf<f64> for KsTwoAsymptotic
[src]
fn invcdf(&self, p: f64) -> f64
[src]
fn quantile(&self, p: f64) -> X
[src]
fn interval(&self, p: f64) -> (X, X)
[src]
impl PartialEq<KsTwoAsymptotic> for KsTwoAsymptotic
[src]
fn eq(&self, other: &KsTwoAsymptotic) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<KsTwoAsymptotic> for KsTwoAsymptotic
[src]
fn partial_cmp(&self, other: &KsTwoAsymptotic) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rv<f32> for KsTwoAsymptotic
[src]
fn ln_f(&self, x: &f32) -> f64
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> f32
[src]
fn f(&self, x: &X) -> f64
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<X>
[src]
impl Rv<f64> for KsTwoAsymptotic
[src]
fn ln_f(&self, x: &f64) -> f64
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> f64
[src]
fn f(&self, x: &X) -> f64
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<X>
[src]
impl StructuralPartialEq for KsTwoAsymptotic
[src]
impl Support<f32> for KsTwoAsymptotic
[src]
impl Support<f64> for KsTwoAsymptotic
[src]
Auto Trait Implementations
impl RefUnwindSafe for KsTwoAsymptotic
impl Send for KsTwoAsymptotic
impl Sync for KsTwoAsymptotic
impl Unpin for KsTwoAsymptotic
impl UnwindSafe for KsTwoAsymptotic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Fx, X> Cdf<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Cdf<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Cdf<X>,
impl<Fx, X> ContinuousDistr<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: ContinuousDistr<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: ContinuousDistr<X>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Fx, X> InverseCdf<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: InverseCdf<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: InverseCdf<X>,
fn invcdf(&Self, f64) -> X
[src]
fn quantile(&Self, f64) -> X
[src]
fn interval(&Self, f64) -> (X, X)
[src]
impl<Fx, X> Rv<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Rv<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Rv<X>,
fn ln_f(&Self, &X) -> f64
[src]
fn f(&Self, &X) -> f64
[src]
fn draw<R>(&Self, &mut R) -> X where
R: Rng,
[src]
R: Rng,
fn sample<R>(&Self, usize, &mut R) -> Vec<X> where
R: Rng,
[src]
R: Rng,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<Fx, X> Support<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Support<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Support<X>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,