question: protected double calcPlanWeight ( final T plan , final double maxScore ) { if ( plan . getScore ( ) == null ) { return Double . NaN ; } double weight = Math . exp ( this . beta * ( plan . getScore ( ) - maxScore ) ) ; if ( weight < MIN_WEIGHT ) weight = MIN_WEIGHT ; return weight ; }
target:  Calculates the weight of a single plan.