bfast
bfast copied to clipboard
Check for the case of zero variance
When the time series consists of a straight line, p.Vt <- sctest(efp(Vt ~ ti, h = h, type = type)) returns NaN, which then fails down the line. bfast should throw an error in case sd(Vt) == 0, and possibly catch any further errors when p.Vt is invalid.
Same issue with bfastmonitor...