findBest: Auxiliary function for top-down discretization
Description
This function is required to perform the disc.Topdown().
Usage
findBest(x, y, bd, di, method)
Arguments
x
a vector of numeric value
method
each method number indicates three top-down discretization.
1 for CAIM algorithm,
2 for CACC algorithm,
3 for Ameva algorithm.