findCutoff {MetaCyto} | R Documentation

## Find cutoff for a 1D distribution

### Description

A function that finds cutoff for a 1D distribution.

### Usage

    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

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

[Package MetaCyto version 1.4.0 Index]