private void updateMinMax(Instance instance){
  for (int j=0; j < instance.numAttributes(); j++) {
    if (Double.isNaN(m_Min[j])) {
      m_Min[j]=instance.value(j);
      m_Max[j]=instance.value(j);
    }
 else {
      if (instance.value(j) < m_Min[j]) {
        m_Min[j]=instance.value(j);
      }
 else {
        if (instance.value(j) > m_Max[j]) {
          m_Max[j]=instance.value(j);
        }
      }
    }
  }
}

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