Class: Semiring
- Inherits:
-
Object
- Object
- Semiring
- Defined in:
- lib/zipf/semirings.rb
Overview
Semirings for directed acyclic graphs (dags) (also directed hypergraphs), as described in: ‘Dynamic Programming Algorithms in
Semiring and Hypergraph Frameworks' (Liang Huang)
Direct Known Subclasses
BooleanSemiring, CountingSemiring, InsideSemiring, RealSemiring, RealxSemiring, ViterbiLogSemiring, ViterbiSemiring
Instance Attribute Summary collapse
-
#add ⇒ Object
Returns the value of attribute add.
-
#convert ⇒ Object
Returns the value of attribute convert.
-
#multiply ⇒ Object
Returns the value of attribute multiply.
-
#null ⇒ Object
Returns the value of attribute null.
-
#one ⇒ Object
Returns the value of attribute one.
Instance Attribute Details
#add ⇒ Object
Returns the value of attribute add.
8 9 10 |
# File 'lib/zipf/semirings.rb', line 8 def add @add end |
#convert ⇒ Object
Returns the value of attribute convert.
8 9 10 |
# File 'lib/zipf/semirings.rb', line 8 def convert @convert end |
#multiply ⇒ Object
Returns the value of attribute multiply.
8 9 10 |
# File 'lib/zipf/semirings.rb', line 8 def multiply @multiply end |
#null ⇒ Object
Returns the value of attribute null.
8 9 10 |
# File 'lib/zipf/semirings.rb', line 8 def null @null end |
#one ⇒ Object
Returns the value of attribute one.
8 9 10 |
# File 'lib/zipf/semirings.rb', line 8 def one @one end |