Struct rv::dist::InvWishart[][src]

pub struct InvWishart { /* fields omitted */ }

Inverse Wishart distribution, W-1(Ψ,ν) over positive definite matrices.

Implementations

impl InvWishart[src]

pub fn new(inv_scale: DMatrix<f64>, df: usize) -> Result<Self, InvWishartError>[src]

Create an Inverse Wishart distribution, W-1(Ψ,ν) with p-by-p inverse scale matrix, Ψ, and degrees of freedom, ν > p - 1.

Arguments

  • inv_scale: p-dimensional inverse scale matrix, Ψ
  • df: Degrees of freedom, ν > p - 1

pub fn new_unchecked(inv_scale: DMatrix<f64>, df: usize) -> Self[src]

Creates a new InvWishart without checking whether the parameters are valid.

pub fn identity(dims: usize) -> Self[src]

Create an Inverse Wishart distribution, W-1(Ip, p)

pub fn ndims(&self) -> usize[src]

pub fn inv_scale(&self) -> &DMatrix<f64>[src]

Get a reference to the inverse scale parameter

pub fn df(&self) -> usize[src]

Get the degrees of freedom

pub fn set_df(&mut self, df: usize) -> Result<(), InvWishartError>[src]

Set the value of df

pub fn set_df_unchecked(&mut self, df: usize)[src]

Set the value of df without input validation

pub fn set_inv_scale(
    &mut self,
    inv_scale: DMatrix<f64>
) -> Result<(), InvWishartError>
[src]

Set inverse scale parameter

pub fn set_inv_scale_unchecked(&mut self, inv_scale: DMatrix<f64>)[src]

Trait Implementations

impl Clone for InvWishart[src]

impl ContinuousDistr<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart[src]

impl Debug for InvWishart[src]

impl Mean<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart[src]

impl Mode<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart[src]

impl PartialEq<InvWishart> for InvWishart[src]

impl Rv<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart[src]

impl StructuralPartialEq for InvWishart[src]

impl Support<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,