[−][src]Struct rv::dist::InvWishart
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]
&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]
fn clone(&self) -> InvWishart
[src]
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 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]
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]
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]
fn sample_stream<'r, R: Rng>(
&'r self,
rng: &'r mut R
) -> Box<dyn Iterator<Item = X> + 'r>
[src]
&'r self,
rng: &'r mut R
) -> Box<dyn Iterator<Item = X> + 'r>
impl StructuralPartialEq for InvWishart
[src]
impl Support<Matrix<f64, Dynamic, Dynamic, <DefaultAllocator as Allocator<f64, Dynamic, Dynamic>>::Buffer>> for InvWishart
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvWishart
impl Send for InvWishart
impl Sync for InvWishart
impl Unpin for InvWishart
impl UnwindSafe for InvWishart
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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<Fx, X> ContinuousDistr<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: ContinuousDistr<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: ContinuousDistr<X>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Fx, X> Mean<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Mean<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Mean<X>,
impl<Fx, X> Mode<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Mode<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Mode<X>,
impl<Fx, X> Rv<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Rv<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Rv<X>,
fn ln_f(&Self, &X) -> f64
[src]
fn f(&Self, &X) -> f64
[src]
fn draw<R>(&Self, &mut R) -> X where
R: Rng,
[src]
R: Rng,
fn sample<R>(&Self, usize, &mut R) -> Vec<X> where
R: Rng,
[src]
R: Rng,
fn sample_stream<'r, R: Rng>(
&'r self,
rng: &'r mut R
) -> Box<dyn Iterator<Item = X> + 'r>
[src]
&'r self,
rng: &'r mut R
) -> Box<dyn Iterator<Item = X> + 'r>
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<Fx, X> Support<X> for Fx where
Fx: Deref,
<Fx as Deref>::Target: Support<X>,
[src]
Fx: Deref,
<Fx as Deref>::Target: Support<X>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,