Package org.drip.sequence.random
Class BoundedUniformInteger
java.lang.Object
org.drip.sequence.random.UnivariateSequenceGenerator
org.drip.sequence.random.BoundedUniformInteger
public class BoundedUniformInteger extends UnivariateSequenceGenerator
BoundedUniformInteger implements the Bounded Uniform Distribution, with a Uniform Integer being
generated between a lower and an upper Bound.
- Module = Numerical Core Module
- Library = Statistical Learning Library
- Project = Sequence
- Package = Random
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description BoundedUniformInteger(int iStart, int iFinish)
BoundedUniformInteger Distribution Constructor -
Method Summary
Modifier and Type Method Description int
finish()
Retrieve the Finishdouble
random()
Generate a Random Number according to the specified ruleSingleSequenceAgnosticMetrics
sequence(int iNumEntry, R1Univariate distPopulation)
Generate a Random Sequence along with its Metricsint
start()
Retrieve the StartMethods inherited from class org.drip.sequence.random.UnivariateSequenceGenerator
sequence
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BoundedUniformInteger
public BoundedUniformInteger(int iStart, int iFinish) throws java.lang.ExceptionBoundedUniformInteger Distribution Constructor- Parameters:
iStart
- The Lower BoundiFinish
- The Upper Bound- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
start
public int start()Retrieve the Start- Returns:
- The Start
-
finish
public int finish()Retrieve the Finish- Returns:
- The Finish
-
random
public double random()Description copied from class:UnivariateSequenceGenerator
Generate a Random Number according to the specified rule- Specified by:
random
in classUnivariateSequenceGenerator
- Returns:
- The Random Number
-
sequence
Description copied from class:UnivariateSequenceGenerator
Generate a Random Sequence along with its Metrics- Overrides:
sequence
in classUnivariateSequenceGenerator
- Parameters:
iNumEntry
- Number of Entries in the SequencedistPopulation
- The True Underlying Generator Distribution of the Population- Returns:
- The Random Sequence (along with its Metrics)
-