Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/kneepointDetection.R
With an appropriate sigma value, the curve of eigenvalues has a knee point shape. The bending point is a good estimate for the number of informative spectral clusters because the eigenvalues above the corresponding threshold can reasonably be assumed to be close to 1. This function estimate the knee point by fitting 2 lines using linear regression.
1 | kneepointDetection(vect, PlotFlag=FALSE)
|
vect |
The vector of values on which the 2 regression lines will be fitted. |
PlotFlag |
If TRUE and in unix, an animation will be produced in tmpfigs folder that shows how the best selected model in gif format. |
The running time is in order of minutes for 100 points. This function was borrowed from flowMeans package and for application in SamSPECTRAL package, it was customized such that the first line is always horizontal.
Returns a list where MinIndex is the index of the knee point and l1 and l2 the fitted lines.
Nima Aghaeepour
Aghaeepour N., Nikolic R., Hoos HH., Brinkman RR.: Rapid cell population identification in flow cytometry data. Cytometry A, 2011, 79:6.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.