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§
Required Methods§
Sourcefn assumptions() -> Vec<Box<dyn Assumption>>
fn assumptions() -> Vec<Box<dyn Assumption>>
Provide the required assumptions for the statistic to be calculated
Sourcefn null_hypotheses() -> Vec<Box<dyn Conclusion>>
fn null_hypotheses() -> Vec<Box<dyn Conclusion>>
The hypotheses that is being tested
Sourcefn alternate_hypotheses() -> Vec<Box<dyn Conclusion>>
fn alternate_hypotheses() -> Vec<Box<dyn Conclusion>>
The hypotheses that could be true if the null hypotheses is not
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.