public class BrownianMotionView extends Object implements BrownianMotionInterface
BrownianMotionInterface.| Constructor and Description |
|---|
BrownianMotionView(BrownianMotionInterface brownianMotion,
Integer[] factors)
Create a sub-view on a Brownian motion.
|
| 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 BrownianMotionView(BrownianMotionInterface brownianMotion, Integer[] factors)
BrownianMotionInterface, i.e. a Brownian motion,
which maps factor indices to possilby other factors of the given Brownian motion.
You may use this class to change the number of factors and/or the order.brownianMotion - A given Brownian motion.factors - A map of indices i → j for i = 0,1,2,3,... given as an array of j'spublic RandomVariableInterface getBrownianIncrement(int timeIndex, int factor)
BrownianMotionInterfacegetBrownianIncrement in interface BrownianMotionInterfacetimeIndex - The time index (corresponding to the this class's time discretization).factor - The index of the factor (independent scalar Brownian increment).public TimeDiscretizationInterface getTimeDiscretization()
BrownianMotionInterfacegetTimeDiscretization in interface BrownianMotionInterfacepublic int getNumberOfFactors()
BrownianMotionInterfacegetNumberOfFactors in interface BrownianMotionInterfacepublic int getNumberOfPaths()
BrownianMotionInterfacegetNumberOfPaths in interface BrownianMotionInterfacepublic RandomVariableInterface getRandomVariableForConstant(double value)
BrownianMotionInterfacegetRandomVariableForConstant in interface BrownianMotionInterfacevalue - The constant value to be used for initialized the random variable.public BrownianMotionInterface getCloneWithModifiedSeed(int seed)
BrownianMotionInterfacegetCloneWithModifiedSeed in interface BrownianMotionInterfaceseed - New value for the seed.public BrownianMotionInterface getCloneWithModifiedTimeDiscretization(TimeDiscretizationInterface newTimeDiscretization)
BrownianMotionInterfacegetCloneWithModifiedTimeDiscretization in interface BrownianMotionInterfacenewTimeDiscretization - New time discretizationCopyright © 2015. All rights reserved.