Struct concrete_core::math::random::Gaussian [−][src]
pub struct Gaussian<T: FloatingPoint> {
pub std: T,
pub mean: T,
}
Expand description
A distribution type representing random sampling of floating point numbers, following a gaussian distribution.
Fields
std: T
The standard deviation of the distribution.
mean: T
The mean of the distribution.
Trait Implementations
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
fn generate_tensor(
generator: &mut RandomGenerator,
distribution: D,
size: usize
) -> Tensor<Vec<Self>>
fn fill_tensor<Tens>(
generator: &mut RandomGenerator,
distribution: D,
tensor: &mut Tens
) where
Tens: AsMutTensor<Element = Self>,
Auto Trait Implementations
impl<T> RefUnwindSafe for Gaussian<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Gaussian<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more