public class CorrelatedBrownianMotion extends Object implements BrownianMotion
| Constructor and Description |
|---|
CorrelatedBrownianMotion(BrownianMotion 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 |
|---|---|
RandomVariable |
getBrownianIncrement(int timeIndex,
int factor)
Return the Brownian increment for a given timeIndex.
|
BrownianMotion |
getCloneWithModifiedSeed(int seed)
Return a new object implementing BrownianMotion
having the same specifications as this object but a different seed
for the random number generator.
|
BrownianMotion |
getCloneWithModifiedTimeDiscretization(TimeDiscretization newTimeDiscretization)
Return a new object implementing BrownianMotion
having the same specifications as this object but a different
time discretization.
|
RandomVariable |
getIncrement(int timeIndex,
int factor)
Return the increment for a given timeIndex and given factor.
|
int |
getNumberOfFactors()
Returns the number of factors.
|
int |
getNumberOfPaths()
Returns the number of paths.
|
RandomVariable |
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 BrownianMotion.
|
TimeDiscretization |
getTimeDiscretization()
Returns the time discretization used for this set of time-discrete Brownian increments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIncrementpublic CorrelatedBrownianMotion(BrownianMotion uncollelatedFactors, double[][] factorLoadings)
uncollelatedFactors - The Brownian motion providing the (uncorrelated) factors dUj.factorLoadings - The factor loadings fi,j.public RandomVariable getBrownianIncrement(int timeIndex, int factor)
BrownianMotiongetBrownianIncrement in interface BrownianMotiontimeIndex - The time index (corresponding to the this class's time discretization).factor - The index of the factor (independent scalar Brownian increment).public TimeDiscretization getTimeDiscretization()
BrownianMotiongetTimeDiscretization in interface BrownianMotiongetTimeDiscretization in interface IndependentIncrementspublic int getNumberOfFactors()
BrownianMotiongetNumberOfFactors in interface BrownianMotiongetNumberOfFactors in interface IndependentIncrementspublic int getNumberOfPaths()
BrownianMotiongetNumberOfPaths in interface BrownianMotiongetNumberOfPaths in interface IndependentIncrementspublic RandomVariable getRandomVariableForConstant(double value)
BrownianMotiongetRandomVariableForConstant in interface BrownianMotiongetRandomVariableForConstant in interface IndependentIncrementsvalue - The constant value to be used for initialized the random variable.public BrownianMotion getCloneWithModifiedSeed(int seed)
BrownianMotiongetCloneWithModifiedSeed in interface BrownianMotiongetCloneWithModifiedSeed in interface IndependentIncrementsseed - New value for the seed.public BrownianMotion getCloneWithModifiedTimeDiscretization(TimeDiscretization newTimeDiscretization)
BrownianMotiongetCloneWithModifiedTimeDiscretization in interface BrownianMotiongetCloneWithModifiedTimeDiscretization in interface IndependentIncrementsnewTimeDiscretization - New time discretizationpublic RandomVariable getIncrement(int timeIndex, int factor)
IndependentIncrementsgetIncrement in interface IndependentIncrementstimeIndex - The time index (corresponding to the this class's time discretization)factor - The index of the factor (independent scalar increment)Copyright © 2019. All rights reserved.