pub struct StdNormDistVec(pub usize);Expand description
Univariate standard normal distribtion with variable length output.
Tuple Fields§
§0: usizeNumber of elements in Vec sample.
Trait Implementations§
source§impl Clone for StdNormDistVec
impl Clone for StdNormDistVec
source§fn clone(&self) -> StdNormDistVec
fn clone(&self) -> StdNormDistVec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StdNormDistVec
impl Debug for StdNormDistVec
source§impl Default for StdNormDistVec
impl Default for StdNormDistVec
source§fn default() -> StdNormDistVec
fn default() -> StdNormDistVec
Returns the “default value” for a type. Read more
source§impl<T: Num> Distribution<Vec<T, Global>> for StdNormDistVec
impl<T: Num> Distribution<Vec<T, Global>> for StdNormDistVec
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vec<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vec<T>
Generate a random value of
T, using rng as the source of randomness.impl Copy for StdNormDistVec
Auto Trait Implementations§
impl RefUnwindSafe for StdNormDistVec
impl Send for StdNormDistVec
impl Sync for StdNormDistVec
impl Unpin for StdNormDistVec
impl UnwindSafe for StdNormDistVec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more