public class RandomVariableFromArrayFactory extends AbstractRandomVariableFactory
Constructor and Description |
---|
RandomVariableFromArrayFactory() |
RandomVariableFromArrayFactory(boolean isUseDoublePrecisionFloatingPointImplementation) |
Modifier and Type | Method and Description |
---|---|
RandomVariable |
createRandomVariable(double value)
Create a (deterministic) random variable from a constant.
|
RandomVariable |
createRandomVariable(double time,
double value)
Create a (deterministic) random variable from a constant using a specific filtration time.
|
RandomVariable |
createRandomVariable(double time,
double[] values)
Create a random variable from an array using a specific filtration time.
|
String |
toString() |
createRandomVariableArray, createRandomVariableMatrix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRandomVariableOrDefault
public RandomVariableFromArrayFactory()
public RandomVariableFromArrayFactory(boolean isUseDoublePrecisionFloatingPointImplementation)
public RandomVariable createRandomVariable(double value)
RandomVariableFactory
createRandomVariable
in interface RandomVariableFactory
createRandomVariable
in class AbstractRandomVariableFactory
value
- A constant value.RandomVariable
.public RandomVariable createRandomVariable(double time, double value)
RandomVariableFactory
createRandomVariable
in interface RandomVariableFactory
createRandomVariable
in class AbstractRandomVariableFactory
time
- The filtration time of the random variable.value
- A constant value.RandomVariable
.public RandomVariable createRandomVariable(double time, double[] values)
RandomVariableFactory
createRandomVariable
in interface RandomVariableFactory
createRandomVariable
in class AbstractRandomVariableFactory
time
- The filtration time of the random variable.values
- Array representing values of the random variable at the sample paths.RandomVariable
.Copyright © 2020 finmath.net. All rights reserved.