| bfast_wrapper | R Documentation |
Wraps the bfast family (Verbesselt et al.), the standard tool in remote sensing and land-cover monitoring. BFAST decomposes a seasonal series into trend and seasonal components and detects breaks in each separately, which is the right question for satellite time series where a shift in phenology and a shift in level mean different things.
bfast_wrapper(
x,
frequency = 12,
change_in = c("mean", "slope", "seasonality"),
h = 0.15,
season = c("harmonic", "dummy", "none"),
max_iter = 5,
...
)
x |
A numeric vector, or a |
frequency |
Observations per season, used when |
change_in |
Which component's breaks to report: |
h |
Minimal segment size as a fraction of the series. Defaults to
|
season |
Seasonal model: |
max_iter |
Maximum iterations of the trend/season loop. Defaults to
|
... |
Additional arguments passed to |
A ggcpt object whose fitted column holds the
estimated trend component (so autoplot(show_fit = TRUE) draws it)
and whose changepoints carry ci_lower/ci_upper from
strucchange's break-date intervals when available.
verbesselt2010bfastggchangepoint
Other changepoint engines:
bcp_wrapper(),
beast_wrapper(),
binsegrcpp_wrapper(),
bocpd_wrapper(),
capa_wrapper(),
cpm_wrapper(),
cpop_wrapper(),
cpt_wrapper(),
decafs_wrapper(),
ecp_wrapper(),
envcpt_wrapper(),
esac_wrapper(),
fabisearch_wrapper(),
fastcpd_wrapper(),
fcov_wrapper(),
fmean_wrapper(),
fpop_wrapper(),
geomcp_wrapper(),
hdcov_wrapper(),
hdreg_wrapper(),
idetect_wrapper(),
inspect_wrapper(),
kcp_wrapper(),
kwc_wrapper(),
mcp_wrapper(),
mosum_wrapper(),
network_wrapper(),
not_wrapper(),
npmojo_wrapper(),
nsp_wrapper(),
ocd_wrapper(),
pilliat_wrapper(),
segmented_wrapper(),
smuce_wrapper(),
sn_wrapper(),
strucchange_wrapper(),
taylor_wrapper(),
tguh_wrapper(),
trend_wrapper(),
var_wrapper(),
wbs2_wrapper(),
wbs_wrapper(),
wbsts_wrapper()
set.seed(2026)
season <- rep(sin(seq(0, 2 * pi, length.out = 12)), 10)
y <- stats::ts(c(rnorm(60, 1), rnorm(60, 5)) + season,
frequency = 12, start = c(2000, 1))
bfast_wrapper(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.