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;
}

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 ; }
calculates the weight of a single plan .
