public class Expectation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
double |
value
the value of the integral
|
double |
variance
the variance of the integral
|
| Constructor and Description |
|---|
Expectation(Construction integrand,
double x0,
int N)
Compute an expectation of a stochastic integral.
|
Expectation(SDE integrand,
double T0,
double T,
int nT,
double x0,
int N)
Compute an expectation of a stochastic integral.
|
| Modifier and Type | Method and Description |
|---|---|
double |
value()
Get the integral value.
|
double |
variance()
Get the integral variance.
|
public final double value
public final double variance
public Expectation(Construction integrand, double x0, int N)
integrand - a simulation of the integrandx0 - the initial valueN - the number of simulationspublic Expectation(SDE integrand, double T0, double T, int nT, double x0, int N)
integrand - the integrand SDET0 - the beginning of the integral time intervalT - the ending of the integral time intervalnT - the number of sub-intervals in [T0, T], hence time interval discretizationx0 - the initial valueN - the number of simulations