Struct multivariate_optimization::distributions::NormDist
source · pub struct NormDist<T> {
pub average: T,
pub stddev: T,
}Expand description
Univariate (non-standard) normal distribtion with given average and standard deviation.
Fields§
§average: TAverage of created samples.
stddev: TStandard deviation of created samples.
Implementations§
Trait Implementations§
source§impl<T: Num> Distribution<T> for NormDist<T>
impl<T: Num> Distribution<T> for NormDist<T>
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T
Generate a random value of
T, using rng as the source of randomness.Auto Trait Implementations§
impl<T> RefUnwindSafe for NormDist<T>where T: RefUnwindSafe,
impl<T> Send for NormDist<T>where T: Send,
impl<T> Sync for NormDist<T>where T: Sync,
impl<T> Unpin for NormDist<T>where T: Unpin,
impl<T> UnwindSafe for NormDist<T>where T: 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