predict_noise: Estimate the variance of the noise given a set of...

View source: R/estimate_noise.R

predict_noiseR Documentation

Estimate the variance of the noise given a set of coefficients

Description

This function estimates the noise variance given vectors of sampling and observed points and a vector of coefficients.

Usage

predict_noise(t, x, model)

Arguments

t

Vector of sampling points.

x

Vector of observed points.

model

Object of class 'gam' from the function learn_noise.

Value

A numeric vector representing the estimation of the noise variance.

Examples

## 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)

StevenGolovkine/simulater documentation built on April 4, 2022, 5:04 a.m.