Learn R Programming

shatteringdt (version 0.1.0)

compute_delta: Calculates the delta for a given # of samples and value of epsilon.

Description

Calculates the delta for a given # of samples and value of epsilon.

Usage

compute_delta(rpart.tree, samples, epsilon)

Arguments

rpart.tree

rpart.tree. A Decision tree generated by rpart package.

samples

int. The # of samples to be used in delta calculation.

epsilon

float. The epsilon to be used in the delta calculation.

Value

computed delta for # of samples and epsilon given as input.