Class: Saulabs::TrueSkill::Layers::PerformancesToTeamPerformances
- Defined in:
- lib/saulabs/trueskill/layers/performances_to_team_performances.rb
Instance Attribute Summary
Attributes inherited from Base
#factors, #graph, #input, #output
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Saulabs::TrueSkill::Layers::Base
Instance Method Details
#build ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/saulabs/trueskill/layers/performances_to_team_performances.rb', line 9 def build @input.each do || variable = Gauss::Distribution.new @factors << Factors::WeightedSum.new(variable, , .map(&:activity)) @output << [variable] end end |