java.lang.Object
net.finmath.montecarlo.AbstractRandomVariableFactory
- All Implemented Interfaces:
Serializable,RandomVariableFactory
- Direct Known Subclasses:
AbstractRandomVariableDifferentiableFactory,RandomVariableFloatFactory,RandomVariableFromArrayFactory,RandomVariableLazyEvaluationFactory
public abstract class AbstractRandomVariableFactory
extends Object
implements Serializable, RandomVariableFactory
- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRandomVariable(double value)Create a (deterministic) random variable from a constant.abstract RandomVariablecreateRandomVariable(double time, double value)Create a (deterministic) random variable from a constant using a specific filtration time.abstract RandomVariablecreateRandomVariable(double time, double[] values)Create a random variable from an array using a specific filtration time.createRandomVariableArray(double[] values)Create an array of (deterministic) random variables from an array of constants.RandomVariable[][]createRandomVariableMatrix(double[][] values)Create a matrix of (deterministic) random variables from an matrix of constants.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.finmath.montecarlo.RandomVariableFactory
createRandomVariable
-
Constructor Details
-
AbstractRandomVariableFactory
public AbstractRandomVariableFactory()
-
-
Method Details
-
createRandomVariable
Description copied from interface:RandomVariableFactoryCreate a (deterministic) random variable from a constant.- Specified by:
createRandomVariablein interfaceRandomVariableFactory- Parameters:
value- A constant value.- Returns:
- The
RandomVariable.
-
createRandomVariable
Description copied from interface:RandomVariableFactoryCreate a (deterministic) random variable from a constant using a specific filtration time.- Specified by:
createRandomVariablein interfaceRandomVariableFactory- Parameters:
time- The filtration time of the random variable.value- A constant value.- Returns:
- The
RandomVariable.
-
createRandomVariable
Description copied from interface:RandomVariableFactoryCreate a random variable from an array using a specific filtration time.- Specified by:
createRandomVariablein interfaceRandomVariableFactory- Parameters:
time- The filtration time of the random variable.values- Array representing values of the random variable at the sample paths.- Returns:
- The
RandomVariable.
-
createRandomVariableArray
Description copied from interface:RandomVariableFactoryCreate an array of (deterministic) random variables from an array of constants.- Specified by:
createRandomVariableArrayin interfaceRandomVariableFactory- Parameters:
values- Array representing constants.- Returns:
- The
RandomVariable.
-
createRandomVariableMatrix
Description copied from interface:RandomVariableFactoryCreate a matrix of (deterministic) random variables from an matrix of constants.- Specified by:
createRandomVariableMatrixin interfaceRandomVariableFactory- Parameters:
values- Matrix representing constants.- Returns:
- The
RandomVariable.
-