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:
-
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 AbstractRandomVariableDifferentiableFactory
createRandomVariable, createRandomVariableNonDifferentiable, createRandomVariableNonDifferentiableMethods inherited from class AbstractRandomVariableFactory
createRandomVariableArray, createRandomVariableMatrixMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-