[][src]Trait ndarray_glm::link::Link

pub trait Link<M: Glm>: Transform {
    fn func<F: Float>(y: F) -> F;
fn func_inv<F: Float>(lin_pred: F) -> F; }

Describes the functions to map to and from the linear predictors and the expectation of the response. It is constrained mathematically by the response distribution and the transformation of the linear predictor.

Required methods

fn func<F: Float>(y: F) -> F

Maps the expectation value of the response variable to the linear predictor. In general this is determined by a composition of the inverse natural parameter transformation and the canonical link function.

fn func_inv<F: Float>(lin_pred: F) -> F

Maps the linear predictor to the expectation value of the response.

Loading content...

Implementors

impl Link<Logistic<Cloglog>> for Cloglog[src]

impl Link<Logistic<Logit>> for Logit[src]

Loading content...