edu.indiana.util.distribution
Interface Distribution

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Implementing Classes:
BinomialDistribution, ClampedNormalDistribution, DummyDistribution, NormalDistribution, SelectionDistribution, UniformDistribution

public interface Distribution
extends java.lang.Cloneable, java.io.Serializable

A Distribution is used to generate random values.


Method Summary
 java.lang.Object clone()
          Obtain a copy of this distribution.
 int generateIntValue()
          Generate an int value according to this distribution.
 double generateValue()
          Generate a value according to this distribution.
 void setParameters(double[] parameters)
          Set the parameters of this distribution.
 java.lang.String toString()
          Obtain a String representation of this distribution.
 

Method Detail

generateValue

double generateValue()
Generate a value according to this distribution.


generateIntValue

int generateIntValue()
Generate an int value according to this distribution.


setParameters

void setParameters(double[] parameters)
Set the parameters of this distribution.


toString

java.lang.String toString()
Obtain a String representation of this distribution.

Overrides:
toString in class java.lang.Object

clone

java.lang.Object clone()
Obtain a copy of this distribution.