R/Order.R

Defines functions Order

# Special linear time order function, works only when x
# is a scrambled vector of integers.

Order <- function(x) {
  n = length(x)
  o = numeric(n)
  o[x] = Seq(1,n)
  return(o)
}
statsmaths/genlasso documentation built on Jan. 1, 2023, 11:25 a.m.