findCutoff: Find cutoff for a 1D distribution

Description Usage Arguments Value Examples

View source: R/findCutoff.R

Description

A function that finds cutoff for a 1D distribution.

Usage

1
findCutoff(x, returnSil = FALSE, useBL = TRUE, minX = 0)

Arguments

x

A vector of values.

returnSil

Logic, used to specify if the max average silhouette is returned

useBL

Logic, used to specify if outliers should be ignored

minX

A numerical value, used to specify the min value allowed for the cutoff.

Value

If returnSil=F, returns a single cutoff value. Otherwise, returns a list containing the cutoff value and the max average silhouette

Examples

1
2
x=c(rnorm(1000),rnorm(1000,5))
findCutoff(x)

hzc363/MetaCyto documentation built on July 27, 2020, 2:46 a.m.