protected double norm(double x,int i){
  if (Double.isNaN(m_Min[i]) || Utils.eq(m_Max[i],m_Min[i])) {
    return 0;
  }
 else {
    return (x - m_Min[i]) / (m_Max[i] - m_Min[i]);
  }
}

protected double norm ( double x , int i ) { if ( Double . isNaN ( m_Min [ i ] ) || Utils . eq ( m_Max [ i ] , m_Min [ i ] ) ) { return 0 ; } else { return ( x - m_Min [ i ] ) / ( m_Max [ i ] - m_Min [ i ] ) ; } }
normalizes a given value of a numeric attribute .
