Class UniformDensityComputer

java.lang.Object
ubic.basecode.math.distribution.UniformDensityComputer
All Implemented Interfaces:
DensityGenerator

public class UniformDensityComputer extends Object implements DensityGenerator
Author:
pavlidis
  • Constructor Details

    • UniformDensityComputer

      public UniformDensityComputer()
      Create a UniformDensityComputer where the density is defined over the unit inteval [0,1].
    • UniformDensityComputer

      public UniformDensityComputer(double min, double max)
      Create a UniformDensityComputer where the density is defined over the interval given
      Parameters:
      min -
      max -
  • Method Details

    • density

      public double density(double x)
      Specified by:
      density in interface DensityGenerator
      Returns:
      The value of the density at x