| minmax0_smooth | R Documentation |
Smooth approximations to max(x, 0) and min(x, 0)
max0_smooth(x, rho = 20)
min0_smooth(x, rho = 20)
x |
a vector of values |
rho |
smoothing parameter, larger values lead to closer approximation |
the approximate maximum or minimum of x and 0
x <- seq(-1, 1, by = 0.1)
min0_smooth(x)
max0_smooth(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.