Package DistLib

Class uniform

java.lang.Object
DistLib.uniform

public class uniform extends Object
Uniform distribution over an interval.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Generator used during random() call.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    cumulative(double x, double a, double b)
    distribution function of the uniform distribution.
    static double
    density(double x, double a, double b)
    density of the uniform distribution.
    static double
    quantile(double x, double a, double b)
    quantile function of the uniform distribution.
    static double
    generate standard uniform random variate
    static double
    random(double a, double b)
    Random variates from the uniform distribution.

    Methods inherited from class java.lang.Object

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

    • uniRng

      public static StdUniformRng uniRng
      Generator used during random() call. Can be set.
  • Constructor Details

    • uniform

      public uniform()
  • Method Details

    • density

      public static double density(double x, double a, double b)
      density of the uniform distribution.
    • cumulative

      public static double cumulative(double x, double a, double b)
      distribution function of the uniform distribution.
    • quantile

      public static double quantile(double x, double a, double b)
      quantile function of the uniform distribution.
    • random

      public static double random(double a, double b)
      Random variates from the uniform distribution.
    • random

      public static double random()
      generate standard uniform random variate