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)

MetaCyto documentation built on Nov. 8, 2020, 7:50 p.m.