View source: R/estimate_noise.R
learn_noise | R Documentation |
This function estimates the noise variance by fitting a linear model on the squared difference between the observed curves and their smoothed version.
learn_noise(df)
df |
Dataframe containing the real dataset. |
An object of class 'gam' from the function mgcv::gam
.
smooth.spline
,
predict
,
lm
,
coef
## Not run: if(interactive()){ attach(powerconsumption) coefs <- learn_noise(df = powerconsumption) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.