Description Usage Arguments Value Author(s) References
View source: R/miscfunctions.R
A simple implementation of the Gini impurity index for classification and regression trees. Not meant to be called directly - included for demonstration purposes.
1 |
x |
Numeric vector of length n. |
class |
Class labels, length n. |
splitpoint |
Tentative split point. |
The Gini impurity index, given a certain split point, a vector of possible splits, and a vector of class labels. Lower values indicate more pure leaves.
Ron Wehrens
R. Wehrens. "Chemometrics with R - Multivariate Data Analysis in the Natural Sciences and Life Sciences". Springer, Heidelberg, 2011.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.