code: public void getProbs(double[] ps) {
      for (int pi=0,pl=probs.size();pi<pl;pi++) {
        ps[pi] = ((Double) probs.get(pi)).doubleValue();
      }
    }
docs: Populates  an array with the probabilities associated with the outcomes of this sequece.
  @param ps a pre-allocated array to use to hold the values of the probabilities of the outcomes for this sequence.