Package: Ckmeans.1d.dp 4.3.6

Joe Song

Ckmeans.1d.dp: Optimal, Fast, and Reproducible Univariate Clustering

Fast, optimal, and reproducible univariate clustering by dynamic programming. Four problems are solved, including univariate k-means (Wang & Song 2011) <doi:10.32614/RJ-2011-015> (Song & Zhong 2020) <doi:10.1093/bioinformatics/btaa613>, k-median, k-segments, and multi-channel weighted k-means. Dynamic programming is used to minimize the sum of (weighted) within-cluster distances using respective metrics. It substantially outperforms heuristic clustering in both efficiency and accuracy as the number of clusters increases. Multi-channel weighted k-means groups multiple univariate signals into k clusters. An auxiliary function generates histograms adaptive to patterns in data. This package provides a powerful set of tools for univariate data analysis with guaranteed optimality, efficiency, and reproducibility, useful for peak calling on temporal, spatial, and spectral data in addition to univariate clustering.

Authors:Joe Song [aut, cre], Hua Zhong [aut], Haizhou Wang [aut]

Ckmeans.1d.dp_4.3.6.tar.gz
Ckmeans.1d.dp_4.3.6.zip(r-4.7-x86_64)Ckmeans.1d.dp_4.3.6.zip(r-4.7-arm64)Ckmeans.1d.dp_4.3.6.zip(r-4.6-x86_64)Ckmeans.1d.dp_4.3.6.zip(r-4.6-arm64)
Ckmeans.1d.dp_4.3.6.tar.gz(r-4.7-arm64)Ckmeans.1d.dp_4.3.6.tar.gz(r-4.7-x86_64)Ckmeans.1d.dp_4.3.6.tar.gz(r-4.6-arm64)Ckmeans.1d.dp_4.3.6.tar.gz(r-4.6-x86_64)
Ckmeans.1d.dp_4.3.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
Ckmeans.1d.dp/json (API)

# Install 'Ckmeans.1d.dp' in R:
install.packages('Ckmeans.1d.dp', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

7.05 score 18 stars 20 packages 6.9k downloads 13 exports 3 dependencies

Last updated from:c960a53340. Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK172
linux-devel-x86_64OK204
source / vignettesOK221
linux-release-arm64OK164
linux-release-x86_64OK189
windows-devel-arm64OK257
windows-devel-x86_64OK178
windows-release-arm64OK273
windows-release-x86_64OK121
wasm-releaseOK148

Exports:ahistCkmeans.1d.dpCkmedian.1d.dpCksegs.1d.dpMultiChannel.WUCplot.Ckmeans.1d.dpplot.Ckmedian.1d.dpplot.Cksegs.1d.dpplot.MultiChannelClustersplotBICprint.Ckmeans.1d.dpprint.Ckmedian.1d.dpprint.Cksegs.1d.dp

Dependencies:rbibutilsRcppRdpack

Tutorial: Adaptive versus regular histograms
Example 1: Data from a Gaussian mixture model using one bin per cluster | Example 2: Data from a Gaussian mixture model using three bins per cluster | Example 3: Adaptive histogram of protein DNase | Example 4. Repetitive data

Last update: 2022-01-31
Started: 2016-12-05

Tutorial: Optimal univariate clustering
1. Cluster univariate data given the number of clusters $k$ | Example 1. | 2. Cluster univariate data with an estimated number of clusters $k$ | Example 2. | 3. Optimal weighted univariate clustering for time series analysis | Example 3. | 4. Obtaining midpoints between consecutive clusters

Last update: 2022-01-31
Started: 2016-12-05

Note: Weight scaling in cluster analysis
The linear scale of weights is consequential when estimating the number of clusters | Linear weight scaling is uninfluential when the number of clusters is given

Last update: 2019-09-07
Started: 2017-07-09