Skip to main content

MatrixCovariance

Type Alias MatrixCovariance 

Source
pub type MatrixCovariance = Covariance<Matrix<f64>>;
Expand description

Dense covariance matrix parameter \(\bm{\Sigma}\).

Aliased Type§

pub struct MatrixCovariance(pub ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>);

Tuple Fields§

§0: ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>

Implementations§

Source§

impl MatrixCovariance

Source

pub fn matrix(Sigma: Matrix<f64>) -> Result<Self, Error>

Construct an \(n\)-dimensional covariance matrix parameter \(\bm{\Sigma}\).

§Arguments
  • Sigma - the covariance matrix \(\bm{\Sigma}\).
§Constraints
  1. The covariance matrix is square.
  2. The covariance matrix is positive semi-definite.

Trait Implementations§

Source§

impl Param for MatrixCovariance

Source§

type Value = ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>

Source§

fn value(&self) -> &Self::Value

Returns a reference to the parameter’s value. Read more
Source§

fn into_value(self) -> Self::Value

Converts the parameter into it’s value.
Source§

fn constraints() -> Constraints<Self::Value>

Returns the constraints associated with this parameter type.