pub struct Normal { /* fields omitted */ }
Expand description
Implements the Normal distribution.
Create a new Normal distribution with mean mu
and standard deviation sigma
.
Panics if sigma < 0
.
TODO: make cdf
a method of the Continuous
trait.
Performs copy-assignment from source
. Read more
Calculates the probability density function of the given Normal distribution at x
.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Sample from the given Normal distribution.
Update the parameters of the distribution.
Generates a vector of n
randomly sampled values from the given probability distribution.
Generates a matrix of size n x m
with values randomly sampled from the given
distribution. Read more
Returns the mean of the given Normal distribution.
Returns the variance of the given Normal distribution.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.