Class RandomVariableFloatFactory
java.lang.Object
net.finmath.montecarlo.AbstractRandomVariableFactory
net.finmath.montecarlo.RandomVariableFloatFactory
- All Implemented Interfaces:
Serializable, RandomVariableFactory
- Author:
- Christian Fries
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRandomVariable
(double time, double value) Create a (deterministic) random variable from a constant using a specific filtration time.createRandomVariable
(double time, double[] values) Create a random variable from an array using a specific filtration time.Methods inherited from class AbstractRandomVariableFactory
createRandomVariable, createRandomVariableArray, createRandomVariableMatrix
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface RandomVariableFactory
createRandomVariable
-
Constructor Details
-
RandomVariableFloatFactory
public RandomVariableFloatFactory()
-
-
Method Details
-
createRandomVariable
Description copied from interface:RandomVariableFactory
Create a (deterministic) random variable from a constant using a specific filtration time.- Specified by:
createRandomVariable
in interfaceRandomVariableFactory
- Specified by:
createRandomVariable
in classAbstractRandomVariableFactory
- Parameters:
time
- The filtration time of the random variable.value
- A constant value.- Returns:
- The
RandomVariable
.
-
createRandomVariable
Description copied from interface:RandomVariableFactory
Create a random variable from an array using a specific filtration time.- Specified by:
createRandomVariable
in interfaceRandomVariableFactory
- Specified by:
createRandomVariable
in classAbstractRandomVariableFactory
- Parameters:
time
- The filtration time of the random variable.values
- Array representing values of the random variable at the sample paths.- Returns:
- The
RandomVariable
.
-