Generic function for returning the probabilities of class membership at a node of a classification tree