compute_shattering: Calculates the shattering coefficient for a decision tree.
Description
Using a recursion function as auxiliar function,
calculates the shattering coefficient for a rpart decision tree.
Usage
compute_shattering(rpart.tree, n_samples)
Arguments
rpart.tree
rpart.tree. A Decision tree generated by rpart package.
n_samples
int. The # of samples to consider in dataset.
Value
The calculus of the shattering coefficient.