compute_shattering: Calculates the shattering coefficient for a decision tree.

Description Usage Arguments Value

View source: R/compute_shattering.R

Description

Using a recursion function as auxiliar function, calculates the shattering coefficient for a rpart decision tree.

Usage

1
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.


shatteringdt documentation built on March 3, 2021, 9:05 a.m.