Trait concision_core::rand::GenerateRandom  
source · pub trait GenerateRandom<T = f64, D = Ix2>: Sizedwhere
    D: Dimension,{
    // Required methods
    fn rand<Sh, IdS>(dim: Sh, distr: IdS) -> Self
       where IdS: Distribution<T>,
             Sh: ShapeBuilder<Dim = D>;
    fn rand_using<Sh, IdS, R>(dim: Sh, distr: IdS, rng: &mut R) -> Self
       where IdS: Distribution<T>,
             R: Rng + ?Sized,
             Sh: ShapeBuilder<Dim = D>;
    // Provided methods
    fn bernoulli(
        dim: impl IntoDimension<Dim = D>,
        p: Option<f64>
    ) -> Result<Self, BernoulliError>
       where Bernoulli: Distribution<T> { ... }
    fn stdnorm(dim: impl IntoDimension<Dim = D>) -> Self
       where StandardNormal: Distribution<T> { ... }
    fn normal_from_key<R>(key: u64, dim: impl IntoDimension<Dim = D>) -> Self
       where StandardNormal: Distribution<T>,
             R: Rng + ?Sized { ... }
    fn uniform(axis: usize, dim: impl IntoDimension<Dim = D>) -> Self
       where T: Real + SampleUniform { ... }
    fn uniform_between(dk: T, dim: impl IntoDimension<Dim = D>) -> Self
       where T: Copy + Neg<Output = T> + SampleUniform { ... }
}Required Methods§
fn rand<Sh, IdS>(dim: Sh, distr: IdS) -> Selfwhere
    IdS: Distribution<T>,
    Sh: ShapeBuilder<Dim = D>,
fn rand_using<Sh, IdS, R>(dim: Sh, distr: IdS, rng: &mut R) -> Self
Provided Methods§
fn bernoulli(
    dim: impl IntoDimension<Dim = D>,
    p: Option<f64>
) -> Result<Self, BernoulliError>where
    Bernoulli: Distribution<T>,
fn stdnorm(dim: impl IntoDimension<Dim = D>) -> Selfwhere
    StandardNormal: Distribution<T>,
fn normal_from_key<R>(key: u64, dim: impl IntoDimension<Dim = D>) -> Self
fn uniform(axis: usize, dim: impl IntoDimension<Dim = D>) -> Selfwhere
    T: Real + SampleUniform,
fn uniform_between(dk: T, dim: impl IntoDimension<Dim = D>) -> Self
Object Safety§
This trait is not object safe.