drasys.or.prob
Interface DiscreteDistributionI

All Known Implementing Classes:
DiscreteDistribution, EmpiricalDistribution, PoissonDistributionBase, BinomialDistributionBase, PoissonDistribution, BinomialDistribution

public interface DiscreteDistributionI
extends DistributionI

The interface used by algorithms to access discrete distributions. It extends 'DistributionI'.

See Also:
BinomialDistribution, PoissonDistribution, EmpiricalDistribution, DiscreteUniformDistribution

Method Summary
 double cdf(int x)
          Returns the value of the cumulative distribution function at x;
 int[] getRandomArray(int size)
          Returns an array of random numbers from the distribution.
 int[][] getRandomArray(int sizeOfRows, int sizeOfColumns)
          Returns a two dimensional array of random integers from the distribution.
 int getRandomInteger()
          Returns a random integer from the discrete distribution.
 double pdf(int x)
          Returns the value of the probability distribution function at x;
 double probability(int x1, int x2)
          Returns the probability that x >= x1 and x <= x2.
 
Methods inherited from interface drasys.or.prob.DistributionI
cdf, getRandomMatrix, getRandomNumberGenerator, getRandomScaler, getRandomVector, mean, pdf, probability, probability, setElements, setElements, setRandomNumberGenerator, setSeed, std, variance
 

Method Detail

getRandomInteger

public int getRandomInteger()
Returns a random integer from the discrete distribution.

getRandomArray

public int[] getRandomArray(int size)
Returns an array of random numbers from the distribution.

getRandomArray

public int[][] getRandomArray(int sizeOfRows,
                              int sizeOfColumns)
Returns a two dimensional array of random integers from the distribution.

pdf

public double pdf(int x)
Returns the value of the probability distribution function at x;

cdf

public double cdf(int x)
Returns the value of the cumulative distribution function at x;

probability

public double probability(int x1,
                          int x2)
Returns the probability that x >= x1 and x <= x2.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com