Makes a vector monotone. (REFERENCE) proposed a method to project a vector onto monotone space.
1 | monotonize(x, type = "increasing", forced = NULL)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.