elbow_detection: A elbow detection function

Description Usage Arguments Value Examples

View source: R/uSORT_GeneSelection.R

Description

A elbow detection function detects the elbow/knee of a given vector of values. Values will be sorted descendingly before detection, and the ID of those values above the elbow will be returned.

Usage

1
elbow_detection(scores, if_plot = FALSE)

Arguments

scores

A vector of numeric scores.

if_plot

Boolean determine if plot the results.

Value

a vector of selected elements IDs

Examples

1
2
scores <- c(10, 9 ,8, 6, 3, 2, 1, 0.1)
elbow_detection(scores, if_plot = TRUE)

uSORT documentation built on May 20, 2017, 9:46 p.m.

Search within the uSORT package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.