Package org.drip.sequence.random
Class BoundedUniform
java.lang.Object
org.drip.sequence.random.UnivariateSequenceGenerator
org.drip.sequence.random.Bounded
org.drip.sequence.random.BoundedUniform
public class BoundedUniform extends Bounded
BoundedUniform implements the Bounded Uniform Distribution, with a Uniform Distribution 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 BoundedUniform(double dblLowerBound, double dblUpperBound)
BoundedUniform Distribution Constructor -
Method Summary
Modifier and Type Method Description double
random()
Generate a Random Number according to the specified ruleMethods inherited from class org.drip.sequence.random.Bounded
lowerBound, sequence, upperBound
Methods 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
-
BoundedUniform
public BoundedUniform(double dblLowerBound, double dblUpperBound) throws java.lang.ExceptionBoundedUniform Distribution Constructor- Parameters:
dblLowerBound
- The Lower BounddblUpperBound
- The Upper Bound- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
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
-