Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.statcato.statistics
Class UniformProbabilityDistribution

    java.lang.Object
      org.statcato.statistics.ProbabilityDistribution
          org.statcato.statistics.UniformProbabilityDistribution

    public class UniformProbabilityDistribution

extends ProbabilityDistribution

Uniform probability distribution class. A continuous probability distribution defined by a lower and upper bound.

Since:
  1.0
Version:
  %I%, %G%
Author:
  Margaret Yau

Constructor Summary
`UniformProbabilityDistribution(double lower, double upper)` Constructor, given the lower and upper bound.

Method Summary
`double` | `cumulativeProbability(double x)` Returns the cumulative probabililty up to x.
`double` | `density(double x)` Returns the density of the distribution at x.
`double` | `inverseCumulativeProbability(double area)` Returns the inverse cumulative probability.

Methods inherited from class org.statcato.statistics.ProbabilityDistribution
`inverseCumulativeProbability`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### UniformProbabilityDistribution

    public UniformProbabilityDistribution(double lower,
                                          double upper)

  Constructor, given the lower and upper bound.

  Parameters:
    `lower` - lower bound
    `upper` - upper bound

Method Detail

### density

    public double density(double x)

  Returns the density of the distribution at x.

  Specified by:
    `density` in class `ProbabilityDistribution`
  Parameters:
    `x` -
  Returns:
    probability density at x

### cumulativeProbability

    public double cumulativeProbability(double x)

  Returns the cumulative probabililty up to x.

  Specified by:
    `cumulativeProbability` in class `ProbabilityDistribution`
  Parameters:
    `x` -
  Returns:
    cumulative probability P(<=x)

### inverseCumulativeProbability

    public double inverseCumulativeProbability(double area)

  Returns the inverse cumulative probability.

  Parameters:
    `area` - cumulative probability
  Returns:
    inverse cumulative probability

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD