|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiscreteDistribution
This interface must be implemented by all the package's classes implementing a discrete random distribution. Distributions are not mutable.
Method Summary | |
---|---|
int |
generate()
Generates a pseudo-random number. |
double |
probability(int n)
Returns the probability of a given number. |
Method Detail |
---|
int generate()
double probability(int n)
n
- An integer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |