Description Usage Arguments Details
View source: R/optim_roughness.R
Find smoothing paramters that matches rougness of original signal and of their slope
1 2 3 4 5 6 7 8 9 10 | optim_roughness(
y,
slope_FUN,
par = 0.5,
avg_FUN = mean,
roughness_FUN = roughness,
method = c("Brent"),
lower = 0,
upper = 1
)
|
y |
matrix of the signals. |
slope_FUN |
function that compute the slope |
par |
initial value of the smoothing paramter. Default is 0.5. |
avg_FUN |
function to aggregate the rougness of each signal. Defaults is the method. |
roughness_FUN |
function of roughness to optimize |
method |
optimizer from |
lower |
a scalar indicating the lower bound of |
upper |
a scalar indicating the upper bound of |
Check optim
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.