Skip to contents

Function for Gaussian kernel-based smoothing, for use by corr_drift_fun

Usage

fun_gaussiankernel(tbl, qc_types, span_width, ...)

Arguments

tbl

Table (tibble or data.frame) containing the fields QC_TYPE, x (run order number), and y (variable)

qc_types

QC types used for the smoothing (fit) by loess

span_width

Bandwidth of the gaussian kernel function

...

Additional parameters forwarded to KernSmooth::locpoly

Value

List with a data.frame containing original x and the smoothed y values, and a boolean value indicting whether the fit failed or not not.