[−][src]Struct rv::dist::InvWishart
Inverse Wishart distribution, W-1(Ψ,ν) over positive definite matrices.
Methods
impl InvWishart
[src]
impl InvWishart
[src]
pub fn new(inv_scale: DMatrix<f64>, df: usize) -> Result<Self>
[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 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_inv_scale(&mut self, inv_scale: DMatrix<f64>) -> Result<()>
[src]
Set inverse scale parameter
pub fn set_inv_scale_unchecked(&mut self, inv_scale: DMatrix<f64>)
[src]
Trait Implementations
impl Rv<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]
fn ln_f(&self, x: &DMatrix<f64>) -> f64
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> DMatrix<f64>
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<DMatrix<f64>>
[src]
fn f(&self, x: &X) -> f64
[src]
impl Support<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 Mode<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]
impl Clone for InvWishart
[src]
fn clone(&self) -> InvWishart
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<InvWishart> for InvWishart
[src]
fn eq(&self, other: &InvWishart) -> bool
[src]
fn ne(&self, other: &InvWishart) -> bool
[src]
impl PartialOrd<InvWishart> for InvWishart
[src]
fn partial_cmp(&self, other: &InvWishart) -> Option<Ordering>
[src]
fn lt(&self, other: &InvWishart) -> bool
[src]
fn le(&self, other: &InvWishart) -> bool
[src]
fn gt(&self, other: &InvWishart) -> bool
[src]
fn ge(&self, other: &InvWishart) -> bool
[src]
impl Debug for InvWishart
[src]
Auto Trait Implementations
impl Send for InvWishart
impl Sync for InvWishart
impl Unpin for InvWishart
impl UnwindSafe for InvWishart
impl RefUnwindSafe for InvWishart
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,