UnivariateDensityEstimator e;
if (m_estimatorType == ESTIMATOR_KERNEL) {
e = new UnivariateKernelEstimator();
} else if (m_estimatorType == ESTIMATOR_NORMAL) {
e = new UnivariateNormalEstimator();
} else {
e = new UnivariateEqualFrequencyHistogramEstimator();
// Set the number of bins appropriately
((UnivariateEqualFrequencyHistogramEstimator)e).setNumBins(getNumBins());