Class: MiniPGM::Variable

Inherits:
Struct
  • Object
show all
Defined in:
lib/mini_pgm/variable.rb

Overview

Represents a variable in a tabular CPD

Instance Attribute Summary collapse

Instance Attribute Details

#cardinalityObject

Returns the value of attribute cardinality

Returns:

  • (Object)

    the current value of cardinality



7
8
9
# File 'lib/mini_pgm/variable.rb', line 7

def cardinality
  @cardinality
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/mini_pgm/variable.rb', line 7

def label
  @label
end