StatisticalEstimator

Trait StatisticalEstimator 

Source
pub trait StatisticalEstimator {
    type Input;
    type Output;

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

The general form of a statistical estimation

Required Associated Types§

Source

type Input

The data to feed into the estimation function

Source

type Output

The response from the estimation function

Required Methods§

Source

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

Provide the required assumptions for the statistic to be calculated

Source

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

The actual estimation 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§