Skip to main content

LinearFunctional

Trait LinearFunctional 

Source
pub trait LinearFunctional: Send + Sync {
    // Required methods
    fn name(&self) -> String;
    fn terms(&self, w: ArrayView2<'_, f64>) -> Result<Vec<Term>>;
}
Expand description

A linear functional m(W; f) of a function of W = (D, X), given by the transformed data points at which f is evaluated (column 0 of w is the treatment).

Required Methods§

Source

fn name(&self) -> String

Label for summaries, e.g. "ATE".

Source

fn terms(&self, w: ArrayView2<'_, f64>) -> Result<Vec<Term>>

The terms of m at the rows of w (all observations; w has the treatment in column 0 and the covariates after it).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§