density_cut: Density cut.

View source: R/cluster_events.R

density_cutR Documentation

Density cut.

Description

Cut data based on density.

Usage

density_cut(.x, .k, .lower = 0.1, .upper = 2, .step = 0.1)

Arguments

.x

A numeric vector.

.k

Numeric giving the number of expected clusters.

.lower, .upper

The interval for possible value of adjust.

.step

A numeric giving the increment to adjust. Sometimes low values are needed to find a proper adjust value.

Value

A factor, see base::cut()

Examples

set.seed(1234)
.x <- c(rnorm(200, 0, 1), rnorm(200, 0.8, 1))
.k <-  2
density_cut(.x, .k)


beadplexr documentation built on July 9, 2023, 5:59 p.m.