Class: RBF::Optimizer::Algorithm
- Inherits:
-
Object
- Object
- RBF::Optimizer::Algorithm
- Defined in:
- lib/rbf/optimizer.rb
Instance Attribute Summary collapse
-
#optimizer ⇒ Object
readonly
Returns the value of attribute optimizer.
Instance Method Summary collapse
-
#initialize(optimizer, &block) ⇒ Algorithm
constructor
A new instance of Algorithm.
- #optimize(tree) ⇒ Object
Constructor Details
#initialize(optimizer, &block) ⇒ Algorithm
Returns a new instance of Algorithm.
21 22 23 24 |
# File 'lib/rbf/optimizer.rb', line 21 def initialize (optimizer, &block) @optimizer = optimizer @block = block end |
Instance Attribute Details
#optimizer ⇒ Object (readonly)
Returns the value of attribute optimizer.
19 20 21 |
# File 'lib/rbf/optimizer.rb', line 19 def optimizer @optimizer end |
Instance Method Details
#optimize(tree) ⇒ Object
26 27 28 |
# File 'lib/rbf/optimizer.rb', line 26 def optimize (tree) self.instance_exec(tree, &@block) end |