protected double dCaldO(Vec o){
  double max=0;
  for (int i=0; i < v.length(); i++) {
    double tmp=(i + 1.0) / v.length() - ECDF(o,v.get(i));
    max=Math.max(max,Math.abs(tmp));
  }
  for (int i=0; i < o.length(); i++) {
    double tmp=(i + 1.0) / o.length() - ECDF(v,o.get(i));
    max=Math.max(max,Math.abs(tmp));
  }
  return max;
}

protected double dCaldO ( Vec o ) { double max = 0 ; for ( int i = 0 ; i < v . length ( ) ; i ++ ) { double tmp = ( i + 1.0 ) / v . length ( ) - ECDF ( o , v . get ( i ) ) ; max = Math . max ( max , Math . abs ( tmp ) ) ; } for ( int i = 0 ; i < o . length ( ) ; i ++ ) { double tmp = ( i + 1.0 ) / o . length ( ) - ECDF ( v , o . get ( i ) ) ; max = Math . max ( max , Math . abs ( tmp ) ) ; } return max ; }
calculates the d statistic for comparison against another data set
