code: public CategoricalResults result(int i)
      {
          if(i < 0 || i >= getNumberOfPaths())
              throw new IndexOutOfBoundsException("Invalid path, can to return a result for path " + i);
          return results[i];
      }
docs: Returns the categorical result of the i'th path.
  @param i the path to get the result for
  @return the result that would be returned if a data point went down the given path
  @throws IndexOutOfBoundsException if an invalid path is given
  @throws NullPointerException if the stump has not been trained for classification