View source: R/bimodality_coefficient.R
bimodality_coefficient | R Documentation |
Internal function to compute bimodality coefficient during BCmvn computation and pK estimation.
bimodality_coefficient(x)
x |
Guassian kernel density estimation representing pANN distribution |
Bimodality coefficient value
Taken from the 'modes' R package (v0.7)
## 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.