lib/hive_stalker/player_data.rb
def specific_skills
      return SpecificSkill.new(
        # Alien
        TeamSkill.new(
          # Field
          [skill - skill_offset, 0].max,
          skill_estimate(skill - skill_offset, adagrad_sum),

          # Commander
          [commander_skill - commander_skill_offset, 0].max,
          skill_estimate(commander_skill - commander_skill_offset, commander_adagrad_sum),
        ),

        # Marine
        TeamSkill.new(
          # Field
          [skill + skill_offset, 0].max,
          skill_estimate(skill + skill_offset, adagrad_sum),

          # Commander
          [commander_skill + commander_skill_offset, 0].max,
          skill_estimate(commander_skill + commander_skill_offset, commander_adagrad_sum),
        ),
      )
    end
# Returns per-team and per-position (field / commander) skills, including
# lower bounds for each.
Returns per-team and per-position (field / commander) skills, including
lower bounds for each.
Returns per - team and per - position ( field / commander ) skills including lower bounds for each .
def specific_skills
      return SpecificSkill.new(
        TeamSkill.new(
          [skill - skill_offset, 0].max,
          skill_estimate(skill - skill_offset, adagrad_sum),
          [commander_skill - commander_skill_offset, 0].max,
          skill_estimate(commander_skill - commander_skill_offset, commander_adagrad_sum),
        ),
        TeamSkill.new(
          [skill + skill_offset, 0].max,
          skill_estimate(skill + skill_offset, adagrad_sum),
          [commander_skill + commander_skill_offset, 0].max,
          skill_estimate(commander_skill + commander_skill_offset, commander_adagrad_sum),
        ),
      )
    end
def specific_skills return SpecificSkill . new ( TeamSkill . new ( [ skill - skill_offset , 0 ] . max , skill_estimate ( skill - skill_offset , adagrad_sum ) , [ commander_skill - commander_skill_offset , 0 ] . max , skill_estimate ( commander_skill - commander_skill_offset , commander_adagrad_sum ) , ) , TeamSkill . new ( [ skill + skill_offset , 0 ] . max , skill_estimate ( skill + skill_offset , adagrad_sum ) , [ commander_skill + commander_skill_offset , 0 ] . max , skill_estimate ( commander_skill + commander_skill_offset , commander_adagrad_sum ) , ) , ) end
Returns per-team and per-position (field / commander) skills, including
lower bounds for each.
Returns per - team and per - position ( field / commander ) skills including lower bounds for each .
# Alien # Field # Commander # Marine # Field # Commander