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 intfinish()Retrieve the Finishdoublerandom()Generate a Random Number according to the specified ruleSingleSequenceAgnosticMetricssequence(int iNumEntry, R1Univariate distPopulation)Generate a Random Sequence along with its Metricsintstart()Retrieve the StartMethods inherited from class org.drip.sequence.random.UnivariateSequenceGenerator
sequenceMethods 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:UnivariateSequenceGeneratorGenerate a Random Number according to the specified rule- Specified by:
randomin classUnivariateSequenceGenerator- Returns:
- The Random Number
-
sequence
Description copied from class:UnivariateSequenceGeneratorGenerate a Random Sequence along with its Metrics- Overrides:
sequencein 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)
-