Struct rv::dist::InvWishart [−][src]
pub struct InvWishart { /* fields omitted */ }
Inverse Wishart distribution, W-1(Ψ,ν) over positive definite matrices.
Implementations
impl InvWishart
[src]
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]
&mut self,
inv_scale: DMatrix<f64>
) -> Result<(), InvWishartError>
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 Clone for InvWishart
[src]fn clone(&self) -> InvWishart
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ContinuousDistr<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]
impl ContinuousDistr<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]impl Mean<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> 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 Mode<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]impl PartialEq<InvWishart> for InvWishart
[src]
impl PartialEq<InvWishart> for InvWishart
[src]fn eq(&self, other: &InvWishart) -> bool
[src]
fn ne(&self, other: &InvWishart) -> bool
[src]
impl Rv<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> 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 StructuralPartialEq for InvWishart
[src]Auto Trait Implementations
impl RefUnwindSafe for InvWishart
impl RefUnwindSafe for InvWishart
impl Send for InvWishart
impl Send for InvWishart
impl Sync for InvWishart
impl Sync for InvWishart
impl Unpin for InvWishart
impl Unpin for InvWishart
impl UnwindSafe for InvWishart
impl UnwindSafe for InvWishart
Blanket Implementations
impl<T> Same<T> for T
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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,