/** * Get a probability estimate for a value * * @param data the value to estimate the probability of * @return the estimated probability of the supplied value */ public double getProbability(double data) { double delta = data - m_ValueMean; if (m_CovarianceInverse == null) { return 0; } return normalKernel(delta); }
/** * Get a probability estimate for a value * * @param data the value to estimate the probability of * @return the estimated probability of the supplied value */ public double getProbability(double data) { double delta = data - m_ValueMean; if (m_CovarianceInverse == null) { return 0; } return normalKernel(delta); }