code: public char[] ts2string(double[] ts, int paaSize, double[] cuts, double nThreshold)
        throws SAXException {
  
      if (paaSize == ts.length) {
        return tsProcessor.ts2String(tsProcessor.znorm(ts, nThreshold), cuts);
      }
      else {
        // perform PAA conversion
        double[] paa = tsProcessor.paa(tsProcessor.znorm(ts, nThreshold), paaSize);
        return tsProcessor.ts2String(paa, cuts);
      }
    }
docs: Convert the timeseries into SAX string representation.
  
  @param ts the timeseries.
  @param paaSize the PAA size.
  @param cuts the alphabet cuts.
  @param nThreshold the normalization thresholds.
  
  @return The SAX representation for timeseries.
  @throws SAXException if error occurs.