code: public static double[] getClassDistribution(Node node) {
          List<ScoreDistribution> scoreDistributions = node.getScoreDistributions();
  
          double[] classDistribution = null;
  
          if (!scoreDistributions.isEmpty()) {
              classDistribution = new double[scoreDistributions.size()];
  
              for (int i = 0; i < scoreDistributions.size(); i++) {
                  classDistribution[i] = scoreDistributions.get(i).getConfidence();
              }
          }
  
          return classDistribution;
      }
docs: Retrieves the class distribution for the given node.
  <p/>
  We represent this in PMML as the confidence of a list of {@link org.dmg.pmml.ScoreDistribution} elements.
  
  @param node The {@link org.dmg.pmml.Node PMML node} for which to retrieve the class distribution.
  @return A array with the class distribution for the given node.