Description Usage Arguments Details See Also Examples
This density based clustering is a univariate optimisation of the DBSCAN* algorithm as in section 3 of Campello et al. (2013).
1 |
x |
A numeric vector of values to be clustered |
eps |
A positive number representing the window radius in which to group points / measure density. |
mnpts |
A positive number representing the minimum density for a point
to be included – the minimum number of points within +/- |
pp |
A logical value indicating whether progress should be printed to the console. |
Note that a mnpts
of 1 will produce groups that correspond to the
equivalence classes of the relation “are within eps
of each other”.
This can be useful for low-density or low-noise data.
This is included in this package due to its usefulness in clustering peaks by mass, see example below.
Section 3 of Campello, Ricardo JGB, Davoud Moulavi, and Joerg Sander. "Density-based clustering based on hierarchical density estimates." In Advances in Knowledge Discovery and Data Mining, pp. 160-172. Springer Berlin Heidelberg, 2013.
1 2 3 4 5 | i.path = system.file("extdata", "test1", package = "dipps")
n.emp = combine_peaklists(i.path)
o.name = basename(i.path)
df.peak = load_peaklist(o.name)
df.peak$group = dbscan(df.peak$m.z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.