public class UnitGrid extends java.lang.Object implements TimeGrid
| Modifier and Type | Field and Description |
|---|---|
int |
N
the number of time points
|
| Constructor and Description |
|---|
UnitGrid(int N)
Construct a time grid with time interval 1 between any two successive time points.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public UnitGrid(int N)
N - the number of time pointspublic int size()
TimeGridpublic double t(int i)
i ∈ [1, N + 1].