public class CorrelatedBrownianMotion extends Object implements BrownianMotionInterface
Constructor and Description |
---|
CorrelatedBrownianMotion(BrownianMotionInterface uncollelatedFactors,
double[][] factorLoadings)
Create a correlated Brownian motion from given independent increments
and a given matrix of factor loadings.
|
Modifier and Type | Method and Description |
---|---|
RandomVariableInterface |
getBrownianIncrement(int timeIndex,
int factor)
Return the Brownian increment for a given timeIndex.
|
BrownianMotionInterface |
getCloneWithModifiedSeed(int seed)
Return a new object implementing BrownianMotionInterface
having the same specifications as this object but a different seed
for the random number generator.
|
BrownianMotionInterface |
getCloneWithModifiedTimeDiscretization(TimeDiscretizationInterface newTimeDiscretization)
Return a new object implementing BrownianMotionInterface
having the same specifications as this object but a different
time discretization.
|
int |
getNumberOfFactors()
Returns the number of factors.
|
int |
getNumberOfPaths()
Returns the number of paths.
|
RandomVariableInterface |
getRandomVariableForConstant(double value)
Returns a random variable which is initialized to a constant,
but has exactly the same number of paths or discretization points as the ones used by this BrownianMotionInterface.
|
TimeDiscretizationInterface |
getTimeDiscretization()
Returns the time discretization used for this set of time-discrete Brownian increments.
|
public CorrelatedBrownianMotion(BrownianMotionInterface uncollelatedFactors, double[][] factorLoadings)
uncollelatedFactors
- The Brownian motion providing the (uncorrelated) factors dUj.factorLoadings
- The factor loadings fi,j.public RandomVariableInterface getBrownianIncrement(int timeIndex, int factor)
BrownianMotionInterface
getBrownianIncrement
in interface BrownianMotionInterface
timeIndex
- The time index (corresponding to the this class's time discretization).factor
- The index of the factor (independent scalar Brownian increment).public TimeDiscretizationInterface getTimeDiscretization()
BrownianMotionInterface
getTimeDiscretization
in interface BrownianMotionInterface
public int getNumberOfFactors()
BrownianMotionInterface
getNumberOfFactors
in interface BrownianMotionInterface
public int getNumberOfPaths()
BrownianMotionInterface
getNumberOfPaths
in interface BrownianMotionInterface
public RandomVariableInterface getRandomVariableForConstant(double value)
BrownianMotionInterface
getRandomVariableForConstant
in interface BrownianMotionInterface
value
- The constant value to be used for initialized the random variable.public BrownianMotionInterface getCloneWithModifiedSeed(int seed)
BrownianMotionInterface
getCloneWithModifiedSeed
in interface BrownianMotionInterface
seed
- New value for the seed.public BrownianMotionInterface getCloneWithModifiedTimeDiscretization(TimeDiscretizationInterface newTimeDiscretization)
BrownianMotionInterface
getCloneWithModifiedTimeDiscretization
in interface BrownianMotionInterface
newTimeDiscretization
- New time discretizationCopyright © 2015. All rights reserved.