title: Package TSclust in R, What is the definition of SAX.breakpoints.table function
body: <p>There is a function called <code>MINDIST.SAX</code> in package <a href="http://cran.r-project.org/web/packages/TSclust/TSclust.pdf" rel="nofollow">TSclust</a>. Here is the body of the function:</p>
  
  <pre><code>require(TSclust)
  &gt; MINDIST.SAX
  function (x, y, alpha, n) 
  {
      w &lt;- length(x)
      symb &lt;- SAX.breakpoints.table(alpha)
      d &lt;- 0
      for (i in 1:w) {
          xi &lt;- x[i]
          yi &lt;- y[i]
          if (abs(xi - yi) &gt; 1) {
              d &lt;- d + (symb[max(xi, yi)] - symb[min(xi, yi) + 
                  1])^2
          }
      }
      sqrt((n/w) * d)
  }
  &lt;environment: namespace:TSclust&gt;
  </code></pre>
  
  <p>As  can be seen above, there is another function called <code>SAX.breakpoints.table</code> that has been re-called.</p>
  
  <p>I need to know the exact definition of this function (i.e. <code>SAX.breakpoints.table</code>). I tried <code>SAX.breakpoints.table</code> </p>
  
  <pre><code>&gt; SAX.breakpoints.table
  Error: object 'SAX.breakpoints.table' not found
  </code></pre>
  
  <p>as well as:</p>
  
  <pre><code>&gt; ls("package:TSclust")
   [1] "cluster.evaluation"    "convert.to.SAX.symbol" "diss"                  "diss.ACF"             
   [5] "diss.AR.LPC.CEPS"      "diss.AR.MAH"           "diss.AR.PIC"           "diss.CDM"             
   [9] "diss.CID"              "diss.COR"              "diss.CORT"             "diss.DTWARP"          
  [13] "diss.DWT"              "diss.EUCL"             "diss.FRECHET"          "diss.INT.PER"         
  [17] "diss.MINDIST.SAX"      "diss.NCD"              "diss.PACF"             "diss.PDC"             
  [21] "diss.PER"              "diss.PRED"             "diss.SPEC.GLK"         "diss.SPEC.ISD"        
  [25] "diss.SPEC.LLR"         "loo1nn.cv"             "MINDIST.SAX"           "PAA"                  
  [29] "pvalues.clust"
  </code></pre>
  
  <p>But I couldn't find it!</p>