Class: DRP::MaxDepths::StaticMaxDepth
- Inherits:
-
Object
- Object
- DRP::MaxDepths::StaticMaxDepth
- Defined in:
- lib/weights_and_max_depths.rb
Overview
the max_depth classes are stored in class variables and are passed an instance of the extended user class so that they can ask for codons if they need them. they need not be copied like weights because they are only run once at instance initialization
Instance Method Summary collapse
-
#initialize(int) ⇒ StaticMaxDepth
constructor
A new instance of StaticMaxDepth.
- #value(drp_instance_unused) ⇒ Object
Constructor Details
#initialize(int) ⇒ StaticMaxDepth
Returns a new instance of StaticMaxDepth.
33 34 35 |
# File 'lib/weights_and_max_depths.rb', line 33 def initialize int @value = int.to_i end |
Instance Method Details
#value(drp_instance_unused) ⇒ Object
36 37 38 |
# File 'lib/weights_and_max_depths.rb', line 36 def value drp_instance_unused @value end |