MultifitLinearWorkspace

Struct MultifitLinearWorkspace 

Source
pub struct MultifitLinearWorkspace { /* private fields */ }

Implementations§

Source§

impl MultifitLinearWorkspace

Source

pub fn new(n: usize, p: usize) -> Option<Self>

Source

pub fn linear( &mut self, x: &MatrixF64, y: &VectorF64, c: &mut VectorF64, cov: &mut MatrixF64, ) -> Result<f64, Value>

Returns chisq.

Source

pub fn linear_tsvd( &mut self, x: &MatrixF64, y: &VectorF64, tol: f64, c: &mut VectorF64, cov: &mut MatrixF64, ) -> Result<(f64, usize), Value>

Available on crate feature v2_3 only.

Returns (chisq, rank).

Source

pub fn linear_svd(&mut self, x: &mut MatrixF64) -> Result<(), Value>

Source

pub fn linear_bsvd(&mut self, x: &mut MatrixF64) -> Result<(), Value>

Source

pub fn linear_rank(&self, tol: f64) -> usize

Available on crate feature v2_3 only.
Source

pub fn linear_solve( &mut self, lambda: f64, x: &MatrixF64, y: &VectorF64, c: &mut VectorF64, ) -> Result<(f64, f64), Value>

Returns (rnorm, snorm).

Source

pub fn linear_stdform1( &mut self, l: &VectorF64, x: &MatrixF64, y: &VectorF64, xs: &mut MatrixF64, ys: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_wstdform1( &mut self, l: &VectorF64, x: &MatrixF64, w: &VectorF64, y: &VectorF64, xs: &mut MatrixF64, ys: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_stdform2( &mut self, lqr: &MatrixF64, ltau: &VectorF64, x: &MatrixF64, y: &VectorF64, xs: &mut MatrixF64, ys: &mut VectorF64, m: &mut MatrixF64, ) -> Result<(), Value>

Source

pub fn linear_wstdform2( &mut self, lqr: &MatrixF64, ltau: &VectorF64, x: &MatrixF64, w: &VectorF64, y: &VectorF64, xs: &mut MatrixF64, ys: &mut VectorF64, m: &mut MatrixF64, ) -> Result<(), Value>

Source

pub fn linear_genform1( &mut self, l: &VectorF64, cs: &VectorF64, c: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_genform2( &mut self, lqr: &MatrixF64, ltau: &VectorF64, x: &MatrixF64, y: &VectorF64, cs: &VectorF64, m: &MatrixF64, c: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_wgenform2( &mut self, lqr: &MatrixF64, ltau: &VectorF64, x: &MatrixF64, w: &VectorF64, y: &VectorF64, cs: &VectorF64, m: &MatrixF64, c: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_lcurve( &mut self, y: &VectorF64, reg_param: &mut VectorF64, rho: &mut VectorF64, eta: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_Lsobolev( &mut self, p: usize, kmax: usize, alpha: &VectorF64, l: &mut MatrixF64, ) -> Result<(), Value>

Source

pub fn wlinear( &mut self, x: &MatrixF64, w: &VectorF64, y: &VectorF64, c: &mut VectorF64, cov: &mut MatrixF64, ) -> Result<f64, Value>

Returns chisq.

Source

pub fn wlinear_tsvd( &mut self, x: &MatrixF64, w: &VectorF64, y: &VectorF64, tol: f64, c: &mut VectorF64, cov: &mut MatrixF64, ) -> Result<(f64, usize), Value>

Available on crate feature v2_3 only.

Returns (chisq, rank).

Source

pub fn wlinear_svd( &mut self, x: &MatrixF64, w: &VectorF64, y: &VectorF64, tol: f64, c: &mut VectorF64, cov: &mut MatrixF64, ) -> Result<(usize, f64), Value>

Returns (rank, chisq).

Source

pub fn wlinear_usvd( &mut self, x: &MatrixF64, w: &VectorF64, y: &VectorF64, tol: f64, c: &mut VectorF64, cov: &mut MatrixF64, ) -> Result<(usize, f64), Value>

Returns (rank, chisq).

Source

pub fn linear_rcond(&mut self) -> f64

Available on crate feature v2_1 only.
Source

pub fn linear_gcv_init( &mut self, y: &VectorF64, reg_param: &mut VectorF64, UTy: &mut VectorF64, ) -> Result<f64, Value>

Returns delta0.

Source

pub fn linear_gcv_curve( &mut self, reg_param: &VectorF64, UTy: &VectorF64, delta0: f64, g: &mut VectorF64, ) -> Result<(), Value>

Source

pub fn linear_gcv_min( &mut self, reg_param: &VectorF64, UTy: &VectorF64, g: &VectorF64, delta0: f64, ) -> Result<f64, Value>

Returns lambda.

Source

pub fn linear_gcv_calc( &mut self, lambda: f64, UTy: &VectorF64, delta0: f64, ) -> f64

Source

pub fn linear_gcv( &mut self, y: &VectorF64, reg_param: &mut VectorF64, g: &mut VectorF64, ) -> Result<(f64, f64), Value>

Returns (lambda, g_lambda).

Trait Implementations§

Source§

impl Drop for MultifitLinearWorkspace

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.