public class GammaProcess extends Object implements IndependentIncrementsInterface, Serializable
shape * (t-s)
for \( t-s = \Delta t \) and scale parameter 1.
Here the dimension n is called factors since this Gamma process is used to
generate multi-dimensional multi-factor Levy processes and there one might
use a different number of factors to generate Levy processes of different
dimension.
The quintruppel (time discretization, number of factors, number of paths, seed, shape)
defines the state of an object of this class, i.e., GammaProcess for which
there parameters agree, generate the same random numbers.
The class is immutable and thread safe. It uses lazy initialization.| Constructor and Description |
|---|
GammaProcess(TimeDiscretizationInterface timeDiscretization,
int numberOfFactors,
int numberOfPaths,
int seed,
double shape)
Construct a Gamma process with a given shape parameter.
|
GammaProcess(TimeDiscretizationInterface timeDiscretization,
int numberOfFactors,
int numberOfPaths,
int seed,
double shape,
double scale)
Construct a Gamma process with a given shape parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
IndependentIncrementsInterface |
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.
|
IndependentIncrementsInterface |
getCloneWithModifiedTimeDiscretization(TimeDiscretizationInterface newTimeDiscretization)
Return a new object implementing BrownianMotionInterface
having the same specifications as this object but a different
time discretization.
|
RandomVariableInterface |
getIncrement(int timeIndex,
int factor)
Return the increment for a given timeIndex.
|
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.
|
int |
getSeed() |
TimeDiscretizationInterface |
getTimeDiscretization()
Returns the time discretization used for this set of time-discrete Brownian increments.
|
int |
hashCode() |
String |
toString() |
public GammaProcess(TimeDiscretizationInterface timeDiscretization, int numberOfFactors, int numberOfPaths, int seed, double shape, double scale)
timeDiscretization - The time discretization used for the Gamma increments.numberOfFactors - Number of factors.numberOfPaths - Number of paths to simulate.seed - The seed of the random number generator.shape - The shape parameter of the Gamma distribution.scale - The scale parameter of the Gamma distribution.public GammaProcess(TimeDiscretizationInterface timeDiscretization, int numberOfFactors, int numberOfPaths, int seed, double shape)
timeDiscretization - The time discretization used for the Gamma increments.numberOfFactors - Number of factors.numberOfPaths - Number of paths to simulate.seed - The seed of the random number generator.shape - The shape parameter of the Gamma distribution.public IndependentIncrementsInterface getCloneWithModifiedSeed(int seed)
IndependentIncrementsInterfacegetCloneWithModifiedSeed in interface IndependentIncrementsInterfaceseed - New value for the seed.public IndependentIncrementsInterface getCloneWithModifiedTimeDiscretization(TimeDiscretizationInterface newTimeDiscretization)
IndependentIncrementsInterfacegetCloneWithModifiedTimeDiscretization in interface IndependentIncrementsInterfacenewTimeDiscretization - New time discretizationpublic RandomVariableInterface getIncrement(int timeIndex, int factor)
IndependentIncrementsInterfacegetIncrement in interface IndependentIncrementsInterfacetimeIndex - The time index (corresponding to the this class's time discretization)factor - The index of the factor (independent scalar increment)public TimeDiscretizationInterface getTimeDiscretization()
IndependentIncrementsInterfacegetTimeDiscretization in interface IndependentIncrementsInterfacepublic int getNumberOfFactors()
IndependentIncrementsInterfacegetNumberOfFactors in interface IndependentIncrementsInterfacepublic int getNumberOfPaths()
IndependentIncrementsInterfacegetNumberOfPaths in interface IndependentIncrementsInterfacepublic RandomVariableInterface getRandomVariableForConstant(double value)
IndependentIncrementsInterfacegetRandomVariableForConstant in interface IndependentIncrementsInterfacevalue - The constant value to be used for initialized the random variable.public int getSeed()
Copyright © 2015. All rights reserved.