umontreal.iro.lecuyer.stochprocess
Class GammaProcessPCA
- java.lang.Object
-
- umontreal.iro.lecuyer.stochprocess.StochasticProcess
-
- umontreal.iro.lecuyer.stochprocess.GammaProcess
-
- umontreal.iro.lecuyer.stochprocess.GammaProcessPCA
-
- Direct Known Subclasses:
- GammaProcessPCABridge
public class GammaProcessPCA extends GammaProcess
Represents a gamma process sampled using the principal component analysis (PCA). To simulate the gamma process at times t0 < t1 < ... < td by PCA sampling, a Brownian motion {W(t), t >= 0} with mean 0 and variance parameter ν is first generated at times t0 < t1 < ... < td by PCA sampling (see classBrownianMotionPCA). The independent increments W(tj) - W(tj-1) of this process are then transformed into independent U(0, 1) random variates Vj viaVj = Φ((τ_j-τ_j-1)1/2[W(τj) - W(τj-1)]), j = 1,..., sFinally, the increments of the Gamma process are computed as Y(tj) - Y(tj-1) = G-1(Vj), where G is the gamma distribution function.
-
-
Constructor Summary
Constructors Constructor and Description GammaProcessPCA(double s0, double mu, double nu, GammaGen Ggen)Constructs a new GammaProcessPCA with parameters μ =mu , ν =nu and initial value S(t0) =s0 .GammaProcessPCA(double s0, double mu, double nu, RandomStream stream)Constructs a new GammaProcessPCA with parameters μ =mu , ν =nu and initial value S(t0) =s0 .
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]generatePath()Generates, returns and saves the path {X(t0), X(t1),…, X(td)}.double[]generatePath(double[] uniform01)Generates, returns and saves the path {X(t0), X(t1),…, X(td)}.BrownianMotionPCAgetBMPCA()Returns theBrownianMotionPCAthat is included in theGammaProcessPCAobject.doublenextObservation()This method is not implemented in this class since the path cannot be generated sequentially.doublenextObservation(double nextT)This method is not implemented in this class since the path cannot be generated sequentially.voidsetObservationTimes(double[] t, int d)Sets the observation times of theGammaProcessPCAand theBrownianMotionPCA.voidsetParams(double s0, double mu, double nu)Sets the parameters s0, μ and ν to new values, and sets the variance parameters of theBrownianMotionPCAto ν.voidsetStream(RandomStream stream)Resets theRandomStreamof the gamma generator and theRandomStreamof the innerBrownianMotionPCAto stream.-
Methods inherited from class umontreal.iro.lecuyer.stochprocess.GammaProcess
getMu, getNu, getStream
-
Methods inherited from class umontreal.iro.lecuyer.stochprocess.StochasticProcess
generatePath, getArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setX0
-
-
-
-
Constructor Detail
-
GammaProcessPCA
public GammaProcessPCA(double s0, double mu, double nu, RandomStream stream)Constructs a new GammaProcessPCA with parameters μ =mu , ν =nu and initial value S(t0) =s0 . The random variables are created using stream. Note that the sameRandomStreamis used for the GammaProcessPCA and for theBrownianMotionPCAincluded in this class. Both theGammaProcessPCAand theBrownianMotionPCAare generated by inversion.
-
GammaProcessPCA
public GammaProcessPCA(double s0, double mu, double nu, GammaGen Ggen)Constructs a new GammaProcessPCA with parameters μ =mu , ν =nu and initial value S(t0) =s0 . All the random variables, i.e. the gamma ones and the normal ones, are created using theRandomStreamincluded in theGammaGenGgen. Note that the parameters of theGammaGenobject are not important since the implementation forces the generator to use the correct parameters (as defined above).
-
-
Method Detail
-
generatePath
public double[] generatePath()
Description copied from class:GammaProcessGenerates, returns and saves the path {X(t0), X(t1),…, X(td)}. The gamma variates X in are generated using theRandomStreamstream or theRandomStreamincluded in theGammaGenGgen.- Overrides:
generatePathin classGammaProcess
-
generatePath
public double[] generatePath(double[] uniform01)
Description copied from class:GammaProcessGenerates, returns and saves the path {X(t0), X(t1),…, X(td)}. This method does not use theRandomStreamstream nor theGammaGenGgen. It uses the vector of uniform random numbers U(0, 1) provided by the user and generates the path by inversion. The vector uniform01 must be of dimension d.- Overrides:
generatePathin classGammaProcess
-
nextObservation
public double nextObservation()
This method is not implemented in this class since the path cannot be generated sequentially.- Overrides:
nextObservationin classGammaProcess
-
nextObservation
public double nextObservation(double nextT)
This method is not implemented in this class since the path cannot be generated sequentially.- Overrides:
nextObservationin classGammaProcess
-
getBMPCA
public BrownianMotionPCA getBMPCA()
Returns theBrownianMotionPCAthat is included in theGammaProcessPCAobject.
-
setObservationTimes
public void setObservationTimes(double[] t, int d)Sets the observation times of theGammaProcessPCAand theBrownianMotionPCA.- Overrides:
setObservationTimesin classStochasticProcess
-
setParams
public void setParams(double s0, double mu, double nu)Sets the parameters s0, μ and ν to new values, and sets the variance parameters of theBrownianMotionPCAto ν.- Overrides:
setParamsin classGammaProcess
-
setStream
public void setStream(RandomStream stream)
Resets theRandomStreamof the gamma generator and theRandomStreamof the innerBrownianMotionPCAto stream.- Overrides:
setStreamin classGammaProcess
-
-
DMelt 3.0 © DataMelt by jWork.ORG