/** * Creates the NominalPrediction object. * * @param actual the actual value, or MISSING_VALUE. * @param distribution the predicted probability distribution. Use * NominalPrediction.makeDistribution() if you only know the predicted value. * @param weight the weight assigned to the prediction. */ public NominalPrediction(double actual, double [] distribution, double weight) { if (distribution == null) { throw new NullPointerException("Null distribution in NominalPrediction."); } m_Actual = actual; m_Distribution = distribution.clone(); m_Weight = weight; updatePredicted(); }
/** * Creates the NominalPrediction object. * * @param actual the actual value, or MISSING_VALUE. * @param distribution the predicted probability distribution. Use * NominalPrediction.makeDistribution() if you only know the predicted value. * @param weight the weight assigned to the prediction. */ public NominalPrediction(double actual, double [] distribution, double weight) { if (distribution == null) { throw new NullPointerException("Null distribution in NominalPrediction."); } m_Actual = actual; m_Distribution = distribution.clone(); m_Weight = weight; updatePredicted(); }