monotonize: Project a vector into monotone space

Description Usage Arguments

View source: R/utility.R

Description

Makes a vector monotone. (REFERENCE) proposed a method to project a vector onto monotone space.

Usage

1
monotonize(x, type = "increasing", forced = NULL)

Arguments

x

non-empty numeric vector

type

character indicating if the function is increasing or decreasing

forced

numeric vector of indeces specifying points that cannot be moved


wzhorton/ztools documentation built on Nov. 8, 2019, 1:28 p.m.