pub struct Poisson;
Expand description
The Poisson regression family.
Trait Implementations
sourceimpl Criterion for Poisson
impl Criterion for Poisson
sourcefn model_variance(&self, mu: f64) -> f64
fn model_variance(&self, mu: f64) -> f64
The variance of the regression family.
sourcefn initialize_mu(&self, y: &[f64]) -> Vec<f64>
fn initialize_mu(&self, y: &[f64]) -> Vec<f64>
Initializes the mean value. Read more
sourcefn compute_working_weight(&self, mu: &[f64]) -> Vec<f64>
fn compute_working_weight(&self, mu: &[f64]) -> Vec<f64>
Computes the working weights that make up the diagonal
of the
W
matrix used in the iterative reweighted least squares
algorithm. Read moresourcefn compute_y_bar(&self, y: &[f64], mu: &[f64]) -> Vec<f64>
fn compute_y_bar(&self, y: &[f64], mu: &[f64]) -> Vec<f64>
Computes the adjustment to the fitted values used during
fitting. Read more
sourcefn apply_link_func(&self, vec: Vector<f64>) -> Vector<f64>
fn apply_link_func(&self, vec: Vector<f64>) -> Vector<f64>
Applies the link function to a vector.
sourcefn apply_link_inv(&self, vec: Vector<f64>) -> Vector<f64>
fn apply_link_inv(&self, vec: Vector<f64>) -> Vector<f64>
Applies the inverse of the link function to a vector.
impl Copy for Poisson
Auto Trait Implementations
impl RefUnwindSafe for Poisson
impl Send for Poisson
impl Sync for Poisson
impl Unpin for Poisson
impl UnwindSafe for Poisson
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more