class IPOAlgorithm::Parameter
the class 'Parameter' models a Factor/Parameter
Attributes
name[R]
no_levels[R]
values[R]
Public Class Methods
new(name, levels)
click to toggle source
# File lib/IPOAlgorithm/Parameter.rb, line 5 def initialize(name, levels) @values = Array.new @name = name @no_levels = levels #each value is represented using the lowercase version of the factor's name and an index subscript starting from 1 up to the number of levels of the factor 1.upto(levels) {|i| values << name.downcase + i.to_s} end