Class: Saulabs::TrueSkill::Layers::Base
- Inherits:
-
Object
- Object
- Saulabs::TrueSkill::Layers::Base
- Defined in:
- lib/saulabs/trueskill/layers/base.rb
Direct Known Subclasses
IteratedTeamPerformances, PerformancesToTeamPerformances, PriorToSkills, SkillsToPerformances, TeamDifferenceComparision, TeamPerformanceDifferences
Instance Attribute Summary collapse
-
#factors ⇒ Object
Returns the value of attribute factors.
-
#graph ⇒ Object
Returns the value of attribute graph.
-
#input ⇒ Object
Returns the value of attribute input.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(graph) ⇒ Base
constructor
A new instance of Base.
- #posterior_schedule ⇒ Object
- #prior_schedule ⇒ Object
Constructor Details
#initialize(graph) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 12 def initialize(graph) @graph = graph @factors = [] @output = [] @input = [] end |
Instance Attribute Details
#factors ⇒ Object
Returns the value of attribute factors.
10 11 12 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 10 def factors @factors end |
#graph ⇒ Object
Returns the value of attribute graph.
10 11 12 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 10 def graph @graph end |
#input ⇒ Object
Returns the value of attribute input.
10 11 12 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 10 def input @input end |
#output ⇒ Object
Returns the value of attribute output.
10 11 12 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 10 def output @output end |
Instance Method Details
#build ⇒ Object
19 20 21 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 19 def build raise "Abstract method Layers::Base#build called" end |
#posterior_schedule ⇒ Object
27 28 29 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 27 def posterior_schedule nil end |
#prior_schedule ⇒ Object
23 24 25 |
# File 'lib/saulabs/trueskill/layers/base.rb', line 23 def prior_schedule nil end |