public class Expectation
extends java.lang.Object
implements java.io.Serializable
/
E( | f(B(t)) dt )
/
f is not necessarily an adapted function.
The Brownian paths are generated by Monte Carlo simulations.
| Modifier and Type | Field and Description |
|---|---|
Integrator |
I
the integrator to compute the integral for each filtration/path
|
int |
n
the number of discretization in the integral time interval
|
int |
nSim
the number of simulations
|
double |
t0
the beginning time of the integral time interval
|
double |
t1
the ending time of the integral time interval
|
| Constructor and Description |
|---|
Expectation(Integrator I,
double t0,
double t1,
int n,
int nSim)
Compute the expectation for the integral of a stochastic process.
|
| Modifier and Type | Method and Description |
|---|---|
double |
mean()
Compute the mean of the integral.
|
double |
var()
Compute the variance of the integral.
|
public final Integrator I
public final double t0
public final double t1
public final int n
public final int nSim
public Expectation(Integrator I, double t0, double t1, int n, int nSim)
I - the integral of a stochastic processt0 - the beginning time of the integral time intervalt1 - the ending time of the integral time intervaln - the number of discretization in the integral time intervalnSim - the number of simulations