public static KernelFunction autoKernel ( Vec dataPoints ) { if ( dataPoints . length ( ) < 30 ) return GaussKF . getInstance ( ) ; else if ( dataPoints . length ( ) < 1000 ) return EpanechnikovKF . getInstance ( ) ; else //For very large data sets, Uniform is FAST and just as accurate return UniformKF . getInstance ( ) ; }
Automatically selects a good Kernel function for the data set that balances Execution time and accuracy