bmt {fusionclust} | R Documentation |
Big Merge Tracker
Description
Solves an L1 relaxed univariate clustering criterion and returns a
sequence of \lambda
values where the clusters merge
Usage
bmt(x, alpha = 0.1, small.perturbation = 10^(-6))
Arguments
x |
observation vector |
alpha |
merging threshold. Default is 0.1 |
small.perturbation |
a small positive number to remove ties. Default is 10^(-6) |
Details
solves a convex relaxation of the univariate clustering criterion given by equation
(2) in the referenced paper and generates a sequence of cluster merges and corresponding
\lambda
values. See algorithm 1 in the referenced paper for more details.
Value
path - number of clusters on the big merge path
lambda.path - sequence of lambda where clusters merge
index - cluster index at the point where clusters merge
merge - merge points
split - split points
prob - merging proportion
boundaries - cluster boundaries
References
P. Radchenko, G. Mukherjee, Convex clustering via l1 fusion penalization, J. Roy. Statist, Soc. Ser. B (Statistical Methodology) (2017) doi:10.1111/rssb.12226.
See Also
Examples
library(fusionclust)
set.seed(42)
x<- c(rnorm(1000,-2,1), rnorm(1000,2,1))
out<- bmt(x)