Struct compute::distributions::Normal[][src]

pub struct Normal { /* fields omitted */ }
Expand description

Implements the Normal distribution.

Implementations

Create a new Normal distribution with mean mu and standard deviation sigma.

Errors

Panics if sigma < 0.

TODO: make cdf a method of the Continuous trait.

Trait Implementations

Returns a copy of the value. Read more

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.