question: protected void normalizeScores ( ) { double hub_ssum = 0 ; double auth_ssum = 0 ; for ( V v : graph . getVertices ( ) ) { double hub_val = getOutputValue ( v ) . hub ; double auth_val = getOutputValue ( v ) . authority ; hub_ssum += ( hub_val * hub_val ) ; auth_ssum += ( auth_val * auth_val ) ; } hub_ssum = Math . sqrt ( hub_ssum ) ; auth_ssum = Math . sqrt ( auth_ssum ) ; for ( V v : graph . getVertices ( ) ) { HITS . Scores values = getOutputValue ( v ) ; setOutputValue ( v , new HITS . Scores ( values . hub / hub_ssum , values . authority / auth_ssum ) ) ; } }
target:  Normalizes scores so that sum of their squares = 1. This method may be overridden so as to yield different  normalizations.