Struct fetish_lib::normal_inverse_wishart_sampler::NormalInverseWishartSampler [−][src]
pub struct NormalInverseWishartSampler { /* fields omitted */ }
Expand description
A structure that may be used to efficiently
sample from some fixed NormalInverseWishart
distribution.
Implementations
impl NormalInverseWishartSampler
[src]
impl NormalInverseWishartSampler
[src]pub fn new(distr: &NormalInverseWishart) -> NormalInverseWishartSampler
[src]
pub fn new(distr: &NormalInverseWishart) -> NormalInverseWishartSampler
[src]Constructs a new NormalInverseWishartSampler
from the
given NormalInverseWishart
distribution.
pub fn sample(&self, rng: &mut ThreadRng) -> Array2<f32>
[src]
pub fn sample(&self, rng: &mut ThreadRng) -> Array2<f32>
[src]Draws a sample from the NormalInverseWishart
distribution
that this NormalInverseWishartSampler
was constructed with.
Auto Trait Implementations
impl RefUnwindSafe for NormalInverseWishartSampler
impl Send for NormalInverseWishartSampler
impl Sync for NormalInverseWishartSampler
impl Unpin for NormalInverseWishartSampler
impl UnwindSafe for NormalInverseWishartSampler
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,