private void updateMinMax(V featureVector,double[] minima,double[] maxima){
  if (minima.length != featureVector.getDimensionality()) {
    throw new IllegalArgumentException("FeatureVectors differ in length.");
  }
  for (int d=0; d < featureVector.getDimensionality(); d++) {
    if ((featureVector.doubleValue(d)) > maxima[d]) {
      maxima[d]=(featureVector.doubleValue(d));
    }
    if ((featureVector.doubleValue(d)) < minima[d]) {
      minima[d]=(featureVector.doubleValue(d));
    }
  }
}

private void updateMinMax ( V featureVector , double [ ] minima , double [ ] maxima ) { if ( minima . length != featureVector . getDimensionality ( ) ) { throw new IllegalArgumentException ( "FeatureVectors differ in length." ) ; } for ( int d = 0 ; d < featureVector . getDimensionality ( ) ; d ++ ) { if ( ( featureVector . doubleValue ( d ) ) > maxima [ d ] ) { maxima [ d ] = ( featureVector . doubleValue ( d ) ) ; } if ( ( featureVector . doubleValue ( d ) ) < minima [ d ] ) { minima [ d ] = ( featureVector . doubleValue ( d ) ) ; } } }
updates the minima and maxima array according to the specified feature vector .
