public double[] distributionForInstance(Instance instance) throws Exception {
  if (m_ZeroR != null) {
    return m_ZeroR.distributionForInstance(instance);
  }
  return m_Distribution[whichSubset(instance)];
}

public double [ ] distributionForInstance ( Instance instance ) throws Exception { if ( m_ZeroR != null ) { return m_ZeroR . distributionForInstance ( instance ) ; } return m_Distribution [ whichSubset ( instance ) ] ; }
calculates the class membership probabilities for the given test instance .
