Class RealGaussian

java.lang.Object
org.flag4j.rng.distributions.Distribution<Double,Random>
org.flag4j.rng.distributions.RealGaussian

public class RealGaussian extends Distribution<Double,Random>
A real Gaussian (e.g. normal) distribution.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Mean of the Gaussian distribution.
    final double
    Standard deviation of the Gaussian distribution.

    Fields inherited from class org.flag4j.rng.distributions.Distribution

    rng
  • Constructor Summary

    Constructors
    Constructor
    Description
    RealGaussian(RandomComplex rng, double mean, double std)
    Constructs a real Gaussian distribution.
  • Method Summary

    Modifier and Type
    Method
    Description
    Randomly samples this Gaussian distribution.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mean

      public final double mean
      Mean of the Gaussian distribution.
    • std

      public final double std
      Standard deviation of the Gaussian distribution.
  • Constructor Details

    • RealGaussian

      public RealGaussian(RandomComplex rng, double mean, double std)
      Constructs a real Gaussian distribution.
      Parameters:
      rng - Pseudorandom number generator to use when randomly sampling from this distribution.
      mean - Mean of the Gaussian distribution.
      std - Standard deviation of the Gaussian distribution.
  • Method Details