Description Usage Arguments Value Author(s) Examples
Make a SparseSignal, which is a piecewise constant function defined on 1, ..., L.
1 | SparseSignal(first, after, value)
|
first |
Integer vector: first position of each segment. |
after |
Integer vector: first position after each segment. |
value |
Numeric vector: segment values. |
data.frame with columns first, after, value. 1 row per segment, and there are no rows for segments with value 0.
Toby Dylan Hocking
1 2 3 4 5 | ## SparseSignals do not have 0-valued segments.
ss <- SparseSignal(c(10, 12, 15, 1000),
c(11, 13, 17, 1001),
c( 1, -2, 4, 0))
print(ss)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.