Estimate calibration values by applying a median filter and interpolating between the filtered values.

estimate_cals(x, y, k, xout, breaks)

Arguments

x

Calibration check times (POSIXct).

y

Calibration check values.

k

Median filter window width. If NA no smoothing is applied.

xout

Times at which to estimate the calibration value.

breaks

Times of discontinuities caused by instrument adjustments.

Value

Estimated calibration values at times xout.