scripts/score.rb
# No points if not within BALANCE_DELTA
No points if not within BALANCE_DELTA
No points if not within BALANCE_DELTA
def score_balance(value)
    balance_score = 0
    delta = get_balance_delta((HALF_SCALE - value).abs)
    balance_score = (BALANCE_DELTA.to_f / delta) * SCALE if delta == BALANCE_DELTA
    balance_score * WEIGHTS[:balance]
  end
def score_balance ( value ) balance_score = 0 delta = get_balance_delta ( ( HALF_SCALE - value ) . abs ) balance_score = ( BALANCE_DELTA . to_f / delta ) * SCALE if delta == BALANCE_DELTA balance_score * WEIGHTS [ :balance ] end
No points if not within BALANCE_DELTA
No points if not within BALANCE_DELTA
# unless within range no points
value
<not_specific>