| binsegrcpp_wrapper | R Documentation |
Wraps binsegRcpp::binseg() (Hocking): a C++ binary segmentation
that runs in O(n \log n) for the best case and supports several
loss functions, including ones no other engine here offers (Poisson,
\ell_1). It is the package's performance path for binary
segmentation on long series, and it returns the whole nested family of
segmentations, so it also feeds cpt_solution_path().
binsegrcpp_wrapper(
x,
change_in = c("mean", "meanvar"),
distribution = NULL,
max_segments = NULL,
n_segments = NULL,
min_segment_length = NULL
)
x |
A numeric vector. |
change_in |
|
distribution |
Loss function, overriding the mapping from
|
max_segments |
Largest number of segments searched. Defaults to
|
n_segments |
Number of segments to report. When |
min_segment_length |
Minimum segment length. Defaults to |
A ggcpt object.
hocking2024binsegrcppggchangepoint
Other changepoint engines:
bcp_wrapper(),
beast_wrapper(),
bfast_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)
binsegrcpp_wrapper(c(rnorm(100), rnorm(100, 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.