|
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.sde.Expectation
public class Expectation
This class computes the expectation of a stochastic integral. It does so by Monte Carlo simulation over a discretized interval, compute the mean (the expectation) and the variance.
| Field Summary | |
|---|---|
double |
value
the value of the integral |
double |
variance
the variance of the integral |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
double |
value()
Get the integral value. |
double |
variance()
Get the integral variance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final double value
public final double variance
| Constructor Detail |
|---|
public Expectation(Construction integrand,
double x0,
int N)
integrand - a simulation of the integrandx0 - the initial valueN - the number of simulations
public 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| Method Detail |
|---|
public double value()
public double variance()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||