Module net.finmath.lib
Class AbstractRandomVariableDifferentiableFactory
- java.lang.Object
-
- net.finmath.montecarlo.AbstractRandomVariableFactory
-
- net.finmath.montecarlo.automaticdifferentiation.AbstractRandomVariableDifferentiableFactory
-
- All Implemented Interfaces:
Serializable,RandomVariableDifferentiableFactory,RandomVariableFactory
- Direct Known Subclasses:
RandomVariableDifferentiableAADFactory,RandomVariableDifferentiableADFactory
public abstract class AbstractRandomVariableDifferentiableFactory extends AbstractRandomVariableFactory implements RandomVariableDifferentiableFactory
A random variable factory extendingAbstractRandomVariableFactoryproviding random variables implementingRandomVariableDifferentiable.- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractRandomVariableDifferentiableFactory()AbstractRandomVariableDifferentiableFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable)Construct an object extendingAbstractRandomVariableDifferentiableFactorywith a specificAbstractRandomVariableFactoryfor the storage of values.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RandomVariableDifferentiablecreateRandomVariable(double value)Create a (deterministic) random variable from a constant.abstract RandomVariableDifferentiablecreateRandomVariable(double time, double value)Create a (deterministic) random variable from a constant using a specific filtration time.abstract RandomVariableDifferentiablecreateRandomVariable(double time, double[] values)Create a random variable from an array using a specific filtration time.RandomVariablecreateRandomVariableNonDifferentiable(double time, double value)Create a (deterministic) random variable, which is not differentiable, from a constant.RandomVariablecreateRandomVariableNonDifferentiable(double time, double[] values)Create a random variable, which is not differentiable, from an array using a specific filtration time.StringtoString()-
Methods inherited from class net.finmath.montecarlo.AbstractRandomVariableFactory
createRandomVariableArray, createRandomVariableMatrix
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.finmath.montecarlo.RandomVariableFactory
createRandomVariableArray, createRandomVariableMatrix
-
-
-
-
Constructor Detail
-
AbstractRandomVariableDifferentiableFactory
public AbstractRandomVariableDifferentiableFactory(RandomVariableFactory randomVariableFactoryForNonDifferentiable)
Construct an object extendingAbstractRandomVariableDifferentiableFactorywith a specificAbstractRandomVariableFactoryfor the storage of values.- Parameters:
randomVariableFactoryForNonDifferentiable- Random variable factory to be used for the storage of values.
-
AbstractRandomVariableDifferentiableFactory
public AbstractRandomVariableDifferentiableFactory()
-
-
Method Detail
-
createRandomVariable
public RandomVariableDifferentiable createRandomVariable(double value)
Description copied from interface:RandomVariableFactoryCreate a (deterministic) random variable from a constant.- Specified by:
createRandomVariablein interfaceRandomVariableDifferentiableFactory- Specified by:
createRandomVariablein interfaceRandomVariableFactory- Overrides:
createRandomVariablein classAbstractRandomVariableFactory- Parameters:
value- A constant value.- Returns:
- The
RandomVariable.
-
createRandomVariable
public abstract RandomVariableDifferentiable createRandomVariable(double time, double value)
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 classAbstractRandomVariableFactory- Parameters:
time- The filtration time of the random variable.value- A constant value.- Returns:
- The
RandomVariable.
-
createRandomVariable
public abstract RandomVariableDifferentiable createRandomVariable(double time, double[] values)
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 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
public RandomVariable createRandomVariableNonDifferentiable(double time, double value)
Description copied from interface:RandomVariableDifferentiableFactoryCreate a (deterministic) random variable, which is not differentiable, from a constant.- Specified by:
createRandomVariableNonDifferentiablein interfaceRandomVariableDifferentiableFactory- Parameters:
time- The filtration time of the random variable.value- A constant value.- Returns:
- The
RandomVariable.
-
createRandomVariableNonDifferentiable
public RandomVariable createRandomVariableNonDifferentiable(double time, double[] values)
Description copied from interface:RandomVariableDifferentiableFactoryCreate a random variable, which is not differentiable, from an array using a specific filtration time.- Specified by:
createRandomVariableNonDifferentiablein 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.
-
-