code: public int[] ts2Index(double[] series, double[] cuts) throws Exception {
      int[] res = new int[series.length];
      for (int i = 0; i < series.length; i++) {
        res[i] = num2index(series[i], cuts);
      }
      return res;
    }
docs: Convert the timeseries into the index using SAX cuts.
  
  @param series The timeseries to convert.
  @param cuts The alphabet cuts.
  @return SAX cuts indices.
  @throws Exception if error occurs.