private void updateMinMax(Instance instance){
  for (int j=0; j < m_theInstances.numAttributes(); j++) {
    if (!instance.isMissing(j)) {
      if (Double.isNaN(m_minValues[j])) {
        m_minValues[j]=instance.value(j);
        m_maxValues[j]=instance.value(j);
      }
 else {
        if (instance.value(j) < m_minValues[j]) {
          m_minValues[j]=instance.value(j);
        }
 else {
          if (instance.value(j) > m_maxValues[j]) {
            m_maxValues[j]=instance.value(j);
          }
        }
      }
    }
  }
}

private void updateMinMax ( Instance instance ) { for ( int j = 0 ; j < m_theInstances . numAttributes ( ) ; j ++ ) { if ( ! instance . isMissing ( j ) ) { if ( Double . isNaN ( m_minValues [ j ] ) ) { m_minValues [ j ] = instance . value ( j ) ; m_maxValues [ j ] = instance . value ( j ) ; } else { if ( instance . value ( j ) < m_minValues [ j ] ) { m_minValues [ j ] = instance . value ( j ) ; } else { if ( instance . value ( j ) > m_maxValues [ j ] ) { m_maxValues [ j ] = instance . value ( j ) ; } } } } } }
updates the minimum and maximum values for all the attributes based on a new instance .
