StatisticalTest

Trait StatisticalTest 

Source
pub trait StatisticalTest {
    type Input;
    type Output;

    // Required methods
    fn assumptions() -> Vec<Box<dyn Assumption>>;
    fn null_hypotheses() -> Vec<Box<dyn Conclusion>>;
    fn alternate_hypotheses() -> Vec<Box<dyn Conclusion>>;
    fn test(&mut self, input: &Self::Input) -> Self::Output;
}
Expand description

The general form of a statistical evaluation

Required Associated Types§

Source

type Input

The data to feed into the testing function

Source

type Output

The response from the testing function

Required Methods§

Source

fn assumptions() -> Vec<Box<dyn Assumption>>

Provide the required assumptions for the statistic to be calculated

Source

fn null_hypotheses() -> Vec<Box<dyn Conclusion>>

The hypotheses that is being tested

Source

fn alternate_hypotheses() -> Vec<Box<dyn Conclusion>>

The hypotheses that could be true if the null hypotheses is not

Source

fn test(&mut self, input: &Self::Input) -> Self::Output

The actual testing function

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§