|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.epfl.lis.sde.solver.SdeSolver
ch.epfl.lis.sde.solver.MilsteinStratonovich
public class MilsteinStratonovich
This class implements the explicit Milstein method (strong order of convergence 1) to be used with SDEs using Stratonovich scheme. The iterative Milstein scheme is given by the formula [1] Xn+1 = Xn + Fn*h + Gn*dWn + 0.5*Gn*Gn'*(dWn^2 - h) (Ito) Xn+1 = Xn + Fn*h + Gn*dWn + 0.5*Gn*Gn'*(dWn^2) (Stratonovich) <-- Implemented here! where h is the integration step size. This solver implements a first-order stochastic Runge-Kutta algorithm (FSRK) that does not need the user to specify explicitly the derivative of the diffusion term G'. [1] [1] P.E. Kloeden, E. Platen, and H. Schurz, Numerical solution of SDE through computer experiments, Springer, 1994. (pp 150-153) [2] http://en.wikipedia.org/wiki/Runge-Kutta_method_(SDE)
Constructor Summary | |
---|---|
MilsteinStratonovich()
Default constructor |
Method Summary | |
---|---|
void |
advance(double t,
double h,
cern.colt.matrix.DoubleMatrix1D dW,
cern.colt.matrix.DoubleMatrix1D dZ,
cern.colt.matrix.DoubleMatrix1D Xin,
cern.colt.matrix.DoubleMatrix1D Xout)
Proceed on iteration of the numerical integration (step size = h) |
java.lang.String |
getDescription()
Returns a description for this solver. |
void |
init()
Initialization of the solver. |
void |
reset()
Cleanup the solver |
Methods inherited from class ch.epfl.lis.sde.solver.SdeSolver |
---|
checkConvergence, checkX, converged, generateW, generateWienerIncrements, generateWZ, getAbsolutePrecision, getH, getRelativePrecision, getSystem, getX, integrate, setAbsolutePrecision, setH, setRelativePrecision, setSystem, setX, step |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MilsteinStratonovich()
Method Detail |
---|
public void reset()
reset
in class SdeSolver
public void init() throws java.lang.IllegalArgumentException
init
in class SdeSolver
java.lang.IllegalArgumentException
public void advance(double t, double h, cern.colt.matrix.DoubleMatrix1D dW, cern.colt.matrix.DoubleMatrix1D dZ, cern.colt.matrix.DoubleMatrix1D Xin, cern.colt.matrix.DoubleMatrix1D Xout) throws java.lang.Exception
advance
in class SdeSolver
java.lang.Exception
public java.lang.String getDescription()
getDescription
in class SdeSolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |