/** * Get a probability estimate for a value * * @param data the value to estimate the probability of * @param given the new value that data is conditional upon * @return the estimated probability of the supplied value */ @Override public double getProbability(double data, double given) { return getEstimator(given).getProbability(data); }
/** * Get a probability estimate for a value * * @param data the value to estimate the probability of * @param given the new value that data is conditional upon * @return the estimated probability of the supplied value */ @Override public double getProbability(double data, double given) { return getEstimator(given).getProbability(data); }
Estimator result = newEst.getEstimator(cond); for (int i = 0; i <= 100; i += 5) { System.out.println(" " + i + " " + result.getProbability(i));
Estimator result = newEst.getEstimator(cond); for (int i = 0; i <= 100; i += 5) { System.out.println(" " + i + " " + result.getProbability(i));