| abs_smooth | R Documentation |
Smooth approximation to the absolute value function
abs_smooth(x, epsilon = 1e-06)
x |
vector of evaluation points |
epsilon |
smoothing constant |
We approximate the absolute value here as
\vert x \vert \approx \sqrt{x^2 + \epsilon}
Smooth absolute value of x.
abs(0)
abs_smooth(0, 1e-4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.