public interface RandomVariableFactory
net.finmath.stochastic.RandomVariable
.
Use this interface in your implementations to allow dependency injection, i.e. to allow the use
of different implementations of net.finmath.stochastic.RandomVariable
whenever random variables
need to be constructed.RandomVariable
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.
|
RandomVariable[] |
createRandomVariableArray(double[] values)
Create an array of (deterministic) random variables from an array of constants.
|
RandomVariable[][] |
createRandomVariableMatrix(double[][] values)
Create a matrix of (deterministic) random variables from an matrix of constants.
|
RandomVariable createRandomVariable(double value)
value
- A constant value.RandomVariable
.RandomVariable createRandomVariable(double time, double value)
time
- The filtration time of the random variable.value
- A constant value.RandomVariable
.RandomVariable createRandomVariable(double time, double[] values)
time
- The filtration time of the random variable.values
- Array representing values of the random variable at the sample paths.RandomVariable
.RandomVariable[] createRandomVariableArray(double[] values)
values
- Array representing constants.RandomVariable
.RandomVariable[][] createRandomVariableMatrix(double[][] values)
values
- Matrix representing constants.RandomVariable
.Copyright © 2020. All rights reserved.