JSci.maths.statistics
Class UniformDistribution

java.lang.Object
  extended by JSci.maths.statistics.ProbabilityDistribution
      extended by JSci.maths.statistics.UniformDistribution

public class UniformDistribution
extends ProbabilityDistribution


Constructor Summary
UniformDistribution(double minX, double maxX)
           
 
Method Summary
 double cumulative(double X)
          Cumulative distribution function.
 double inverse(double probability)
          Inverse of the cumulative distribution function.
 double probability(double X)
          Probability density function.
 
Methods inherited from class JSci.maths.statistics.ProbabilityDistribution
checkRange, checkRange, findRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformDistribution

public UniformDistribution(double minX,
                           double maxX)
Method Detail

probability

public double probability(double X)
Description copied from class: ProbabilityDistribution
Probability density function.

Specified by:
probability in class ProbabilityDistribution
Returns:
the probability that a stochastic variable x has the value X, i.e. P(x=X).

cumulative

public double cumulative(double X)
Description copied from class: ProbabilityDistribution
Cumulative distribution function.

Specified by:
cumulative in class ProbabilityDistribution
Returns:
the probability that a stochastic variable x is less then X, i.e. P(x<X).

inverse

public double inverse(double probability)
Description copied from class: ProbabilityDistribution
Inverse of the cumulative distribution function.

Specified by:
inverse in class ProbabilityDistribution
Returns:
the value X for which P(x<X).