Class UniformDensityComputer

    • Constructor Detail

      • 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 Detail

      • density

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