bimodality_coefficient: bimodality_coefficient

View source: R/bimodality_coefficient.R

bimodality_coefficientR Documentation

bimodality_coefficient

Description

Internal function to compute bimodality coefficient during BCmvn computation and pK estimation.

Usage

bimodality_coefficient(x)

Arguments

x

Guassian kernel density estimation representing pANN distribution

Value

Bimodality coefficient value

References

Taken from the 'modes' R package (v0.7)

Examples

## Internal to summarizeSweep
gkde <- approxfun(bkde(res.temp$pANN, kernel="normal"))
x <- seq(from=min(res.temp$pANN), to=max(res.temp$pANN), length.out=nrow(res.temp))
sweep.stats$BCreal[i] <- bimodality_coefficient(gkde(x))

chris-mcginnis-ucsf/DoubletFinder documentation built on April 12, 2024, 5:44 p.m.