Given a time series signal, potentially with missing/unobserved values, this function estimates the level of noise under the assumption of local continuity/smoothness.
Arguments
- probs
Numeric vector of (observed) time series measurements.
- read_pos
Integer vector of measurement positions in the time series (same length as probs).
- k
Integer, maximum gap size tolerated when computing \(\Delta x\).
- min_diffs
Integer, minimum number of lag-1 differences required to produce an estimate (default -1 = auto).
Value
A vector with the following items:
Mean signal
Total variance
Noise variance estimate
Number of adjacent positions used for the estimate