Skip to main content

Link

Trait Link 

Source
pub trait Link<M: Glm>: Transform {
    // Required methods
    fn func<F: Float>(y: F) -> F;
    fn func_inv<F: Float>(lin_pred: F) -> F;
}
Expand description

Describes the link function $g$ that maps between the expected response $\mu$ and the linear predictor $\omega = \mathbf{x}^\mathsf{T}\boldsymbol{\beta}$:

g(\mu) = \omega, \qquad \mu = g^{-1}(\omega)

Required Methods§

Source

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.

Source

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

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

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§