pub struct TruncatedNormal<F>where
StandardNormal: Distribution<F>,{ /* private fields */ }
Expand description
A truncated normal distribution is similar to a normal distribution, however, any generated value over two standard deviations from the mean is discarded and re-generated.
Implementations§
Source§impl<F> TruncatedNormal<F>
impl<F> TruncatedNormal<F>
Trait Implementations§
Source§impl<F: Clone> Clone for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: Clone> Clone for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
Source§fn clone(&self) -> TruncatedNormal<F>
fn clone(&self) -> TruncatedNormal<F>
Returns a duplicate 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<F: Debug> Debug for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: Debug> Debug for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
Source§impl<F> Distribution<F> for TruncatedNormal<F>
impl<F> Distribution<F> for TruncatedNormal<F>
Source§impl<F> From<Normal<F>> for TruncatedNormal<F>
impl<F> From<Normal<F>> for TruncatedNormal<F>
Source§impl<F: Hash> Hash for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: Hash> Hash for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
Source§impl<F: Ord> Ord for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: Ord> Ord for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
Source§fn cmp(&self, other: &TruncatedNormal<F>) -> Ordering
fn cmp(&self, other: &TruncatedNormal<F>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F: PartialEq> PartialEq for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: PartialEq> PartialEq for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
Source§impl<F: PartialOrd> PartialOrd for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: PartialOrd> PartialOrd for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: Copy> Copy for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F: Eq> Eq for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
impl<F> StructuralPartialEq for TruncatedNormal<F>where
StandardNormal: Distribution<F>,
Auto Trait Implementations§
impl<F> Freeze for TruncatedNormal<F>where
F: Freeze,
impl<F> RefUnwindSafe for TruncatedNormal<F>where
F: RefUnwindSafe,
impl<F> Send for TruncatedNormal<F>where
F: Send,
impl<F> Sync for TruncatedNormal<F>where
F: Sync,
impl<F> Unpin for TruncatedNormal<F>where
F: Unpin,
impl<F> UnwindSafe for TruncatedNormal<F>where
F: UnwindSafe,
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