public class BrownianMotionPCA extends BrownianMotion
path| Constructor and Description |
|---|
BrownianMotionPCA(double x0,
double mu,
double sigma,
NormalGen gen)
Constructs a new BrownianMotionBridge with
parameters
μ =
|
BrownianMotionPCA(double x0,
double mu,
double sigma,
RandomStream stream)
Constructs a new BrownianMotionBridge with
parameters
μ =
|
| Modifier and Type | Method and Description |
|---|---|
double[][] |
decompPCA(double[][] sigma) |
double[] |
generatePath()
Generates, returns, and saves the sample path
{X(t0), X(t1),…, X(td)}.
|
double[] |
generatePath(double[] uniform01)
Same as generatePath(), but a vector of uniform random numbers
must be provided to the method.
|
double[] |
getSortedEigenvalues()
Returns the sorted eigenvalues obtained in the PCA decomposition.
|
double |
nextObservation()
Generates and returns the next observation X(tj) of the stochastic process.
|
void |
setParams(double x0,
double mu,
double sigma)
Resets the parameters
X(t0) =
|
generatePath, getGen, getMu, getSigma, getStream, nextObservation, nextObservation, setStreamgetArrayMappingCounterToIndex, getCurrentObservation, getCurrentObservationIndex, getNbObservationTimes, getObservation, getObservationTimes, getPath, getSubpath, getX0, hasNextObservation, resetStartProcess, setObservationTimes, setObservationTimes, setX0public BrownianMotionPCA(double x0,
double mu,
double sigma,
RandomStream stream)
RandomStream stream.public double nextObservation()
StochasticProcessnextObservation in class BrownianMotionpublic void setParams(double x0,
double mu,
double sigma)
BrownianMotionsetParams in class BrownianMotionpublic double[] generatePath()
StochasticProcessgeneratePath in class BrownianMotionpublic double[] generatePath(double[] uniform01)
BrownianMotiongeneratePath in class BrownianMotionpublic double[][] decompPCA(double[][] sigma)
public double[] getSortedEigenvalues()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.