|
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.UnitGrid
public class UnitGrid
This class represents the discrete time points [0, 1, ......, N] for a stochastic process.
| Field Summary | |
|---|---|
int |
N
the number of time points |
| Constructor Summary | |
|---|---|
UnitGrid(int N)
Construct a time grid with time interval 1 between any two successive time points. |
|
| 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
| Constructor Detail |
|---|
public UnitGrid(int N)
N - 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 | |||||||