|
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.timepoints.EvenlySpacedGrid
public class EvenlySpacedGrid
This class represents an evenly spaced/discretized time grid for a stochastic process.
| Field Summary | |
|---|---|
int |
N
the number of time points |
double |
T
the ending of the time interval |
double |
T0
the beginning of the time interval |
| Constructor Summary | |
|---|---|
EvenlySpacedGrid(double T0,
double T,
int N)
Construct an evenly spaced/discretized time grid. |
|
| Method Summary | |
|---|---|
int |
size()
the number of time points |
double |
T()
the last time point available |
double |
t(int i)
the i-th time point in the time grid discretization |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int N
public final double T0
public final double T
| Constructor Detail |
|---|
public EvenlySpacedGrid(double T0,
double T,
int N)
T0 - the beginning of the time intervalT - the ending of the time intervalN - the number of time points| Method Detail |
|---|
public int size()
TimeGrid
size in interface TimeGridpublic double t(int i)
i ∈ [1, N + 1].
t in interface TimeGridi - the index
i-th timepublic double T()
TimeGrid
T in interface TimeGrid
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||