View source: R/majority_rule.R
majority_rule_mxPBF | R Documentation |
This function implements a majority rule-based post-processing approach to identify common change points across multiple window sizes from mxPBF results.
majority_rule_mxPBF(res_mxPBF)
res_mxPBF |
A list of results from |
A vector of final detected change points that are common across multiple windows based on majority rule.
n <- 500
p <- 200
signal_size <- 1
pre_value <- 0.3
pre_proportion <- 0.4
given_data <- generate_mean_datasets(n, p, signal_size, pre_proportion, pre_value,
single_point = 250, multiple_points = c(150,300,350), type = 5)
nws <- c(25, 60, 100)
alps <- seq(1,10,0.05)
res_mxPBF <- mxPBF_mean(given_data, nws, alps)
majority_rule_mxPBF(res_mxPBF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.