Class AbstractRandomVariableDifferentiableFactory
java.lang.Object
net.finmath.montecarlo.AbstractRandomVariableFactory
net.finmath.montecarlo.automaticdifferentiation.AbstractRandomVariableDifferentiableFactory
- All Implemented Interfaces:
Serializable, RandomVariableDifferentiableFactory, RandomVariableFactory
- Direct Known Subclasses:
RandomVariableDifferentiableAADFactory, RandomVariableDifferentiableAADPathwiseFactory, RandomVariableDifferentiableAADStochasticNonOptimizedFactory, RandomVariableDifferentiableADFactory
public abstract class AbstractRandomVariableDifferentiableFactory
extends AbstractRandomVariableFactory
implements RandomVariableDifferentiableFactory
A random variable factory extending
AbstractRandomVariableFactory
providing
random variables implementing RandomVariableDifferentiable
.- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRandomVariableDifferentiableFactory
(RandomVariableFactory randomVariableFactoryForNonDifferentiable) Construct an object extendingAbstractRandomVariableDifferentiableFactory
with a specificAbstractRandomVariableFactory
for the storage of values. -
Method Summary
Modifier and TypeMethodDescriptioncreateRandomVariable
(double value) Create a (deterministic) random variable from a constant.abstract RandomVariableDifferentiable
createRandomVariable
(double time, double value) Create a (deterministic) random variable from a constant using a specific filtration time.abstract RandomVariableDifferentiable
createRandomVariable
(double time, double[] values) Create a random variable from an array using a specific filtration time.createRandomVariableNonDifferentiable
(double time, double value) Create a (deterministic) random variable, which is not differentiable, from a constant.createRandomVariableNonDifferentiable
(double time, double[] values) Create a random variable, which is not differentiable, from an array using a specific filtration time.toString()
Methods inherited from class AbstractRandomVariableFactory
createRandomVariableArray, createRandomVariableMatrix
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface RandomVariableFactory
createRandomVariable, createRandomVariableArray, createRandomVariableMatrix
-
Constructor Details
-
AbstractRandomVariableDifferentiableFactory
public AbstractRandomVariableDifferentiableFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable) Construct an object extendingAbstractRandomVariableDifferentiableFactory
with a specificAbstractRandomVariableFactory
for the storage of values.- Parameters:
randomVariableFactoryForNonDifferentiable
- Random variable factory to be used for the storage of values.
-
AbstractRandomVariableDifferentiableFactory
public AbstractRandomVariableDifferentiableFactory()
-
-
Method Details
-
createRandomVariable
Description copied from interface:RandomVariableFactory
Create a (deterministic) random variable from a constant.- Specified by:
createRandomVariable
in interfaceRandomVariableDifferentiableFactory
- Specified by:
createRandomVariable
in interfaceRandomVariableFactory
- Overrides:
createRandomVariable
in classAbstractRandomVariableFactory
- Parameters:
value
- A constant value.- Returns:
- The
RandomVariable
.
-
createRandomVariable
Description copied from interface:RandomVariableFactory
Create a (deterministic) random variable from a constant using a specific filtration time.- Specified by:
createRandomVariable
in interfaceRandomVariableDifferentiableFactory
- 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 interfaceRandomVariableDifferentiableFactory
- 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
.
-
createRandomVariableNonDifferentiable
Description copied from interface:RandomVariableDifferentiableFactory
Create a (deterministic) random variable, which is not differentiable, from a constant.- Specified by:
createRandomVariableNonDifferentiable
in interfaceRandomVariableDifferentiableFactory
- Parameters:
time
- The filtration time of the random variable.value
- A constant value.- Returns:
- The
RandomVariable
.
-
createRandomVariableNonDifferentiable
Description copied from interface:RandomVariableDifferentiableFactory
Create a random variable, which is not differentiable, from an array using a specific filtration time.- Specified by:
createRandomVariableNonDifferentiable
in interfaceRandomVariableDifferentiableFactory
- Parameters:
time
- The filtration time of the random variable.values
- Array representing values of the random variable at the sample paths.- Returns:
- The
RandomVariable
.
-
toString
-