# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.stochasticprocess.univariate.sde.discrete

## Class EulerSDE

• java.lang.Object
• com.numericalmethod.suanshu.stats.stochasticprocess.univariate.sde.discrete.EulerSDE
• All Implemented Interfaces:
DiscreteSDE

public class EulerSDE
extends Object
implements DiscreteSDE
The Euler scheme is the first order approximation of an SDE. $dX_t = \mu * dt + \sigma * \sqrt{dt} * Z_t$
Wikipedia: Euler-Maruyama method
• ### Constructor Summary

Constructors
Constructor and Description
EulerSDE(SDE sde)
Discretize a continuous-time SDE using the Euler scheme.
• ### Method Summary

All Methods
Modifier and Type Method and Description
double dXt(Ft ft)
This is the SDE specification of a stochastic process.
Ft getNewFt()
Get an empty filtration of the process.
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• ### Constructor Detail

• #### EulerSDE

public EulerSDE(SDE sde)
Discretize a continuous-time SDE using the Euler scheme.
Parameters:
sde - a continuous-time SDE
• ### Method Detail

• #### dXt

public double dXt(Ft ft)
This is the SDE specification of a stochastic process.

$$dX_t = \mu * dt + \sigma * \sqrt{dt} * Z_t$$

Specified by:
dXt in interface DiscreteSDE
Parameters:
ft - a filtration
Returns:
the increment of the process in dt
• #### getNewFt

public Ft getNewFt()
Description copied from interface: DiscreteSDE
Get an empty filtration of the process.
Specified by:
getNewFt in interface DiscreteSDE
Returns:
an empty filtration