private void storeUpperBound ( Token tok , Token simTok , List usefulTokens , Map upperBoundOnWeight , double sim ) { double upperBound = tfidfDistance . getWeight ( tok ) * maxTFIDFScore [ simTok . getIndex ( ) ] * sim ; if ( DEBUG ) System . out . println ( "upper-bounding tok " + simTok + " sim=" + sim + " to " + tok + " upperBound " + upperBound ) ; if ( DEBUG ) System . out . println ( "upperBound = " + tfidfDistance . getWeight ( tok ) + "*" + maxTFIDFScore [ simTok . getIndex ( ) ] + "*" + sim ) ; usefulTokens . add ( simTok ) ; upperBoundOnWeight . put ( simTok , new Double ( upperBound ) ) ; }
subroutine of lookup