iption"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment">[IDX,todss,SCORE]=nt_cluster_jd2(x,dsr,flags,init) - cluster with joint diagonalization

  IDX: indices of cluster ownership
  TODSS: DSS matrices to emphasize both clusters
  SCORE: scores for both clusters (smaller means better contrast)

  x: data (time*channels)
  dsr: downsample ratio for cross product series
  flags: 'norm', 'norm2': give each dsr-sized slice the same we