[][src]Struct mathru::statistics::test::G

pub struct G<T> { /* fields omitted */ }

G-Test

Fore more information: https://de.wikipedia.org/wiki/G-Test

Implementations

impl<T> G<T> where
    T: Real + Gamma + Error
[src]

pub fn test_vector(x: &Vec<T>, y: &Vec<T>) -> G<T>[src]

\sum_{i}{y_{i}} = n = \sum_i{xs_i} b = \sum_{i}{x_{i}} k = n/b xs_{i} = x{i}*k

x: observation y: expectation

pub fn df(&self) -> u32[src]

pub fn g(&self) -> T[src]

pub fn p_value(&self) -> T[src]

Trait Implementations

impl<T: Clone> Clone for G<T>[src]

impl<T: Copy> Copy for G<T>[src]

impl<T: Debug> Debug for G<T>[src]

impl<'de, T> Deserialize<'de> for G<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for G<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for G<T> where
    T: RefUnwindSafe

impl<T> Send for G<T> where
    T: Send

impl<T> Sync for G<T> where
    T: Sync

impl<T> Unpin for G<T> where
    T: Unpin

impl<T> UnwindSafe for G<T> where
    T: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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>,