Back to TIM Core implementation
The Signal
class represents a time-series in . If the number of stored
samples from the time series is m, the data is stored as an -matrix. This
data can be manipulated directly via the Matrix
class from the Pastel library.
A Signal
can use existing memory, given extents and a pointer to memory.
This is called aliasing. You can use this ability to import data from
other applications. However, remember that the data is assumed to be
in row-major order (for example, Matlab uses column-major order).
The signal data is accessed directly as a Matrix
object. The
Matrix
class has a rich interface for the modification of signals.
See the documentation for the Matrix
class in Pastel library.
Here we just mention the most important ones:
Matrix
can be accessed via 2d (i, j)-indexing .Matrix
can be accessed as a 1d sequence of values via iterators
to enable the use of STL algorithms where appropriate.Matrix
can be accessed in Matlab style, e.g.
M(Range(0, 1), Range(0, 10, 2)).