Class: Semiring

Inherits:
Object
  • Object
show all
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)

Instance Attribute Summary collapse

Instance Attribute Details

#addObject

Returns the value of attribute add.



8
9
10
# File 'lib/zipf/semirings.rb', line 8

def add
  @add
end

#convertObject

Returns the value of attribute convert.



8
9
10
# File 'lib/zipf/semirings.rb', line 8

def convert
  @convert
end

#multiplyObject

Returns the value of attribute multiply.



8
9
10
# File 'lib/zipf/semirings.rb', line 8

def multiply
  @multiply
end

#nullObject

Returns the value of attribute null.



8
9
10
# File 'lib/zipf/semirings.rb', line 8

def null
  @null
end

#oneObject

Returns the value of attribute one.



8
9
10
# File 'lib/zipf/semirings.rb', line 8

def one
  @one
end