private boolean repeat(double[] repError,int entries){
  int i;
  double mean=0;
  double variance=0;
  if (m_threshold < 0) {
    return false;
  }
  if (entries == 1) {
    return true;
  }
  for (i=0; i < entries; i++) {
    mean+=repError[i];
  }
  mean/=entries;
  for (i=0; i < entries; i++) {
    variance+=((repError[i] - mean) * (repError[i] - mean));
  }
  variance/=entries;
  if (variance > 0) {
    variance=Math.sqrt(variance);
  }
  if ((variance / mean) > m_threshold) {
    return true;
  }
  return false;
}

private boolean repeat ( double [ ] repError , int entries ) { int i ; double mean = 0 ; double variance = 0 ; if ( m_threshold < 0 ) { return false ; } if ( entries == 1 ) { return true ; } for ( i = 0 ; i < entries ; i ++ ) { mean += repError [ i ] ; } mean /= entries ; for ( i = 0 ; i < entries ; i ++ ) { variance += ( ( repError [ i ] - mean ) * ( repError [ i ] - mean ) ) ; } variance /= entries ; if ( variance > 0 ) { variance = Math . sqrt ( variance ) ; } if ( ( variance / mean ) > m_threshold ) { return true ; } return false ; }
decides whether to do another repeat of cross validation . if the standard deviation of the cross validations is greater than threshold % of the mean ( default 1 % ) then another repeat is done .
