Class RandomVariableDifferentiableAADFactory
java.lang.Object
net.finmath.montecarlo.AbstractRandomVariableFactory
net.finmath.montecarlo.automaticdifferentiation.AbstractRandomVariableDifferentiableFactory
net.finmath.montecarlo.automaticdifferentiation.backward.RandomVariableDifferentiableAADFactory
- All Implemented Interfaces:
Serializable, RandomVariableDifferentiableFactory, RandomVariableFactory
public class RandomVariableDifferentiableAADFactory
extends AbstractRandomVariableDifferentiableFactory
- Version:
- 1.1
- Author:
- Christian Fries
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionRandomVariableDifferentiableAADFactory(Map<String, Object> properties) RandomVariableDifferentiableAADFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable) RandomVariableDifferentiableAADFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable, Map<String, Object> properties) Create a factory for objects of typeRandomVariableDifferentiableAAD. -
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.doubleDeprecated.doubledoublebooleantoString()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
-
RandomVariableDifferentiableAADFactory
public RandomVariableDifferentiableAADFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable, Map<String, Object> properties) Create a factory for objects of typeRandomVariableDifferentiableAAD. Supported propeties are- isGradientRetainsLeafNodesOnly: Boolean
- diracDeltaApproximationMethod: String
- diracDeltaApproximationWidthPerStdDev: Double
- Parameters:
randomVariableFactoryForNonDifferentiable- Random variable factory for the underlying values.properties- A key value map with properties.
-
RandomVariableDifferentiableAADFactory
-
RandomVariableDifferentiableAADFactory
public RandomVariableDifferentiableAADFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable) - Parameters:
randomVariableFactoryForNonDifferentiable- Random variable factory for the underlying values.
-
RandomVariableDifferentiableAADFactory
public RandomVariableDifferentiableAADFactory()
-
-
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.
-
getDiracDeltaApproximationMethod
public RandomVariableDifferentiableAADFactory.DiracDeltaApproximationMethod getDiracDeltaApproximationMethod() -
getDiracDeltaApproximationWidthPerStdDev
public double getDiracDeltaApproximationWidthPerStdDev() -
getDiracDeltaApproximationDensityRegressionWidthPerStdDev
public double getDiracDeltaApproximationDensityRegressionWidthPerStdDev() -
getBarrierDiracWidth
Deprecated. -
isGradientRetainsLeafNodesOnly
public boolean isGradientRetainsLeafNodesOnly() -
toString
- Overrides:
toStringin classAbstractRandomVariableDifferentiableFactory
-