|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.stochasticprocess.univariate.integration.Expectation
public class Expectation
This class computes the expectation of the following class of integrals.
/
E( | f(B(t)) dt )
/
f is not necessarily an adapted function.
The Brownian paths are generated by Monte Carlo simulations.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Expectation(Integrator I,
double t0,
double t1,
int n,
int nSim)
Compute the expectation for the integral of a stochastic process. |
|
| Method Summary | |
|---|---|
double |
mean()
Compute the mean of the integral. |
double |
var()
Compute the variance of the integral. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Integrator I
public final double t0
public final double t1
public final int n
public final int nSim
| Constructor Detail |
|---|
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| Method Detail |
|---|
public double mean()
public double var()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||