app/models/applications/application_for_offering.rb
# Calculates the average between the reviewer committee and interview committee scores, based on the weight ratio defined
# in Offering#final_decision_weight_ratio. If either committee score returns a nil, this method returns NaN.
Calculates the average between the reviewer committee and interview committee scores, based on the weight ratio defined
in Offering#final_decision_weight_ratio. If either committee score returns a nil, this method returns NaN.
Calculates the average between the reviewer committee and interview committee scores based on the weight ratio defined in Offering#final_decision_weight_ratio . If either committee score returns a nil this method returns NaN .
def weighted_combined_score
    return 0.0/0.0 if review_committee_score.nil? || interview_committee_score.nil?
    ratio = offering.final_decision_weight_ratio
    r = review_committee_score * ratio
    i = interview_committee_score * (1 - ratio)
    r + i
  end
def weighted_combined_score return 0.0 / 0.0 if review_committee_score . nil? || interview_committee_score . nil? ratio = offering . final_decision_weight_ratio r = review_committee_score * ratio i = interview_committee_score * ( 1 - ratio ) r + i end
Calculates the average between the reviewer committee and interview committee scores, based on the weight ratio defined
in Offering#final_decision_weight_ratio.
Calculates the average between the reviewer committee and interview committee scores based on the weight ratio defined in Offering#final_decision_weight_ratio .