Class: Wallace::Experiment
- Inherits:
-
Object
- Object
- Wallace::Experiment
- Defined in:
- lib/core/experiment.rb
Overview
Experiment instances are used to
Instance Method Summary collapse
-
#experiment ⇒ Object
Performs the experiment described by this objects attributes.
-
#initialize(opts, configurator) ⇒ Experiment
constructor
Constructs a new experiment.
Constructor Details
#initialize(opts, configurator) ⇒ Experiment
Constructs a new experiment.
Parameters:
-
opts, a hash of keyword options for this constructor. -> parameters, the set of parameters to feed to the configurator. -> repeats, the number of times to repeat the experiment.
-
configurator, a lambda function used to setup the experiment run according to some given parameters.
12 13 14 15 |
# File 'lib/core/experiment.rb', line 12 def initialize(opts, configurator) @parameters = opts[:parameters] @repeats = opts[:repeats] || 1 end |
Instance Method Details
#experiment ⇒ Object
Performs the experiment described by this objects attributes.
18 19 20 |
# File 'lib/core/experiment.rb', line 18 def experiment end |