public int ClassifyInstance(double[] attributes, out double[] percentages) { double classificationResult = 1.0; testInstance.setDataset(dataSet); testInstance.setClassMissing(); dataSet.add(testInstance); for (int i = 0; i < attributes.Length; i++) { testInstance.setValue(i, attributes[i]); } classificationResult = m_cl.classifyInstance(testInstance); dataSet.delete(0); percentages = m_cl.distributionForInstance(testInstance); return((int)classificationResult); }