/** * Creates the NumericPrediction object. * * @param actual the actual value, or MISSING_VALUE. * @param predicted the predicted value, or MISSING_VALUE. * @param weight the weight assigned to the prediction. * @param predInt the prediction intervals from classifiers implementing * the <code>IntervalEstimator</code> interface. * @see IntervalEstimator */ public NumericPrediction(double actual, double predicted, double weight, double[][] predInt) { m_Actual = actual; m_Predicted = predicted; m_Weight = weight; setPredictionIntervals(predInt); }
/** * Creates the NumericPrediction object. * * @param actual the actual value, or MISSING_VALUE. * @param predicted the predicted value, or MISSING_VALUE. * @param weight the weight assigned to the prediction. * @param predInt the prediction intervals from classifiers implementing * the <code>IntervalEstimator</code> interface. * @see IntervalEstimator */ public NumericPrediction(double actual, double predicted, double weight, double[][] predInt) { m_Actual = actual; m_Predicted = predicted; m_Weight = weight; setPredictionIntervals(predInt); }
if (m_Predictions != null) { ((NumericPrediction) m_Predictions.get(m_Predictions.size() - 1)) .setPredictionIntervals(preds);
if (m_Predictions != null) { ((NumericPrediction) m_Predictions.get(m_Predictions.size() - 1)) .setPredictionIntervals(preds);