Package jasima.core.random.discrete
Class IntSequence
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.random.discrete.IntSequence
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
IntBernoulli,IntConst,IntDiscretized,IntDistribution,IntEmpirical,IntUniformAllInts,IntUniformRange
public abstract class IntSequence extends DblSequence
A stream of integer numbers, usually the sequence is produced by a pseudo random number generator. This is an abstract base class.- Author:
- Torsten Hildebrandt
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Constructor Summary
Constructors Constructor Description IntSequence()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IntSequenceclone()Clones the current number stream.doublenextDbl()Returns the next number in this number stream.abstract intnextInt()-
Methods inherited from class jasima.core.random.continuous.DblSequence
createStreamDefFromStream, getName, getNumericalMean, getRndGen, getValueRange, init, max, min, setName, setRndGen
-
-
-
-
Method Detail
-
nextInt
public abstract int nextInt()
-
nextDbl
public final double nextDbl()
Description copied from class:DblSequenceReturns the next number in this number stream.- Specified by:
nextDblin classDblSequence
-
clone
public IntSequence clone()
Description copied from class:DblSequenceClones the current number stream. This method fails with aCloneNotSupportedExceptionif there is a random number generator associated with this stream.- Overrides:
clonein classDblSequence
-
-