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]
impl KsTwoAsymptotic
[src]Trait Implementations
impl Cdf<f32> for KsTwoAsymptotic
[src]
impl Cdf<f32> for KsTwoAsymptotic
[src]impl Cdf<f64> for KsTwoAsymptotic
[src]
impl Cdf<f64> for KsTwoAsymptotic
[src]impl Clone for KsTwoAsymptotic
[src]
impl Clone for KsTwoAsymptotic
[src]fn clone(&self) -> KsTwoAsymptotic
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ContinuousDistr<f32> for KsTwoAsymptotic
[src]
impl ContinuousDistr<f32> for KsTwoAsymptotic
[src]impl ContinuousDistr<f64> for KsTwoAsymptotic
[src]
impl ContinuousDistr<f64> for KsTwoAsymptotic
[src]impl Copy for KsTwoAsymptotic
[src]
impl Copy for KsTwoAsymptotic
[src]impl Default for KsTwoAsymptotic
[src]
impl Default for KsTwoAsymptotic
[src]fn default() -> KsTwoAsymptotic
[src]
impl InverseCdf<f32> for KsTwoAsymptotic
[src]
impl InverseCdf<f32> for KsTwoAsymptotic
[src]impl InverseCdf<f64> for KsTwoAsymptotic
[src]
impl InverseCdf<f64> for KsTwoAsymptotic
[src]impl PartialEq<KsTwoAsymptotic> for KsTwoAsymptotic
[src]
impl PartialEq<KsTwoAsymptotic> for KsTwoAsymptotic
[src]impl Rv<f32> for KsTwoAsymptotic
[src]
impl Rv<f32> for KsTwoAsymptotic
[src]impl Rv<f64> for KsTwoAsymptotic
[src]
impl Rv<f64> for KsTwoAsymptotic
[src]impl StructuralPartialEq for KsTwoAsymptotic
[src]
impl StructuralPartialEq for KsTwoAsymptotic
[src]Auto Trait Implementations
impl RefUnwindSafe for KsTwoAsymptotic
impl RefUnwindSafe for KsTwoAsymptotic
impl Send for KsTwoAsymptotic
impl Send for KsTwoAsymptotic
impl Sync for KsTwoAsymptotic
impl Sync for KsTwoAsymptotic
impl Unpin for KsTwoAsymptotic
impl Unpin for KsTwoAsymptotic
impl UnwindSafe for KsTwoAsymptotic
impl UnwindSafe for KsTwoAsymptotic
Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,