getVector: getVector

Description Usage Arguments Author(s) Examples

Description

Get a piecewise constant vector from first up to but not including after. This is inefficient and should be used only to compare speed with efficient operations.

Usage

1
getVector(ss, first, after)

Arguments

ss
first
after

Author(s)

Toby Dylan Hocking

Examples

1
2
3
4
5
6
7
8
9
x <- SparseSignal(c(10, 15), c(13, 20), c(3.3, 5.5))
show <- function(first, after){
  v <- getVector(x, first, after)
  data.frame(v, i=first:(after-1))
}
show(5, 25)
show(10, 20)
show(10, 21)
show(9, 21)

tdhock/SparseSignals documentation built on May 31, 2019, 7:33 a.m.