View source: R/estimate_noise.R
predict_noise | R Documentation |
This function estimates the noise variance given vectors of sampling and observed points and a vector of coefficients.
predict_noise(t, x, model)
t |
Vector of sampling points. |
x |
Vector of observed points. |
model |
Object of class 'gam' from the function |
A numeric vector representing the estimation of the noise variance.
## Not run: if(interactive()){ attach(powerconsumption) coefs <- learn_noise(df = powerconsumption) noise <- predict_noise(t = seq(0, 1, length.out = 101), x = seq(min(powerconsumption, na.rm = T), max(powerconsumption, na.rm = T), length.out = 101), coefs = coefs) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.