return an object for time discretization
range; length time interval in years
positive integer; number of steps in the time interval
positive; end of the time interval
list or Vector; points in the time grid
The TimeGrid command generates discretizing grids for the time space with the given parameters; the command returns a module representing the constructed time grid. This module can be passed to other commands of the Finance package that expect a time grid as one of the parameters; it can also be used as if it were a procedure. Assume for example that the module returned by TimeGrid was assigned to the name T. Then for any positive integer i, T⁡i will return the ith member of the corresponding time grid or issue an error if i exceeds the size of the time grid. For negative i, T⁡i returns the ith from the right element of the time grid. The number of time steps in the created time grid can be accessed using the timesteps export.
The calling sequence TimeGrid(endtime, timesteps) creates a uniform time grid on the interval 0..endtime using the specified number of timesteps.
The calling sequence TimeGrid(timesteps, timesteps) creates a uniform time grid on the interval 0..endtime using the specified number of timesteps. The parameter timeinterval must be a range of type t0..t1, where t0 and t1 are non-negative real constants such that t0<t1.
Finally, the calling sequence TimeGrid(gridpoints) can be used to create non-uniform time grids with the specified points. The parameter gridpoints can be either a list or a Vector. The elements of gridpoints must be sorted in ascending order.
Note that all time grids must contain the point 0, which will be added if necessary.
The Finance[TimeGrid] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Download Help Document
What kind of issue would you like to report? (Optional)