else {
throw new BayesianError("Invalid search type: " + searchStr);
}
if( estimatorStr.equalsIgnoreCase("simple")) {
estimator = new SimpleEstimator();
} else if( estimatorStr.equalsIgnoreCase("none")) {
estimator = new EstimatorNone();
}
else {
throw new BayesianError("Invalid estimator type: " + estimatorStr);