bfast icon indicating copy to clipboard operation
bfast copied to clipboard

Check for the case of zero variance

Open GreatEmerald opened this issue 7 years ago • 1 comments

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.

GreatEmerald avatar Aug 21 '18 11:08 GreatEmerald

Same issue with bfastmonitor...

GreatEmerald avatar Mar 31 '20 19:03 GreatEmerald