R/make.monotone.R

Defines functions make.monotone

Documented in make.monotone

#' @rdname csSAM-internal
make.monotone <-
function(x) {
  n=length(x)
  for(j in 2:n){ x[j]=min(x[j-1],x[j])}
  return(x)
}

Try the csSAM package in your browser

Any scripts or data that you put into this service are public.

csSAM documentation built on May 2, 2019, 5:21 p.m.