cern.jet.random.tdouble
Class AbstractDiscreteDistribution
- java.lang.Object
-
- cern.colt.PersistentObject
-
- cern.jet.random.tdouble.AbstractDoubleDistribution
-
- cern.jet.random.tdouble.AbstractDiscreteDistribution
-
- All Implemented Interfaces:
- DoubleFunction, IntFunction, java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- Binomial, EmpiricalWalker, HyperGeometric, NegativeBinomial, Poisson, PoissonSlow, Zeta
public abstract class AbstractDiscreteDistribution extends AbstractDoubleDistribution
Abstract base class for all discrete distributions.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description doublenextDouble()Returns a random number from the distribution; returns (double) nextInt().abstract intnextInt()Returns a random number from the distribution.-
Methods inherited from class cern.jet.random.tdouble.AbstractDoubleDistribution
apply, apply, clone, makeDefaultGenerator
-
-
-
-
Method Detail
-
nextDouble
public double nextDouble()
Returns a random number from the distribution; returns (double) nextInt().- Specified by:
nextDoublein classAbstractDoubleDistribution
-
nextInt
public abstract int nextInt()
Returns a random number from the distribution.- Overrides:
nextIntin classAbstractDoubleDistribution
-
-
DMelt 3.0 © DataMelt by jWork.ORG