Skip to main content

StatisticalTest

Trait StatisticalTest 

Source
pub trait StatisticalTest {
    // Required method
    fn test(&self) -> Result<f64>;

    // Provided method
    fn is_significant(&self, alpha: f64) -> Result<bool> { ... }
}
Expand description

Statistical test trait

Required Methods§

Source

fn test(&self) -> Result<f64>

Perform the test and return p-value

Provided Methods§

Source

fn is_significant(&self, alpha: f64) -> Result<bool>

Check if result is significant at given alpha level

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§