Module net.finmath.lib
Class RandomVariableDifferentiableADFactory
java.lang.Object
net.finmath.montecarlo.AbstractRandomVariableFactory
net.finmath.montecarlo.automaticdifferentiation.AbstractRandomVariableDifferentiableFactory
net.finmath.montecarlo.automaticdifferentiation.forward.RandomVariableDifferentiableADFactory
- All Implemented Interfaces:
Serializable,RandomVariableDifferentiableFactory,RandomVariableFactory
public class RandomVariableDifferentiableADFactory
extends AbstractRandomVariableDifferentiableFactory
- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionRandomVariableDifferentiableADFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable) -
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.toString()Methods inherited from class net.finmath.montecarlo.automaticdifferentiation.AbstractRandomVariableDifferentiableFactory
createRandomVariable, createRandomVariableNonDifferentiable, createRandomVariableNonDifferentiableMethods inherited from class net.finmath.montecarlo.AbstractRandomVariableFactory
createRandomVariableArray, createRandomVariableMatrixMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.finmath.montecarlo.RandomVariableFactory
createRandomVariable, createRandomVariableArray, createRandomVariableMatrix
-
Constructor Details
-
RandomVariableDifferentiableADFactory
public RandomVariableDifferentiableADFactory() -
RandomVariableDifferentiableADFactory
public RandomVariableDifferentiableADFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable)- Parameters:
randomVariableFactoryForNonDifferentiable- Random variable facotory for the underlying values.
-
-
Method Details
-
createRandomVariable
Description copied from interface:RandomVariableFactoryCreate a (deterministic) random variable from a constant using a specific filtration time.- Specified by:
createRandomVariablein interfaceRandomVariableDifferentiableFactory- Specified by:
createRandomVariablein interfaceRandomVariableFactory- Specified by:
createRandomVariablein classAbstractRandomVariableDifferentiableFactory- 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 interfaceRandomVariableDifferentiableFactory- Specified by:
createRandomVariablein interfaceRandomVariableFactory- Specified by:
createRandomVariablein classAbstractRandomVariableDifferentiableFactory- 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
- Overrides:
toStringin classAbstractRandomVariableDifferentiableFactory
-