Class: Graph::Function::Configuration
- Inherits:
-
Object
- Object
- Graph::Function::Configuration
- Defined in:
- lib/graph/function.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#step ⇒ Object
Returns the value of attribute step.
-
#terminal ⇒ Object
Returns the value of attribute terminal.
-
#trials ⇒ Object
Returns the value of attribute trials.
Instance Method Summary collapse
- #initialize ⇒ Configuration constructor
Constructor Details
#initialize ⇒ Configuration
53 54 55 56 57 58 |
# File 'lib/graph/function.rb', line 53 def initialize @terminal = 'x11' @output = '.' @step = (0..10_000).step(1000).to_a @trials = 1 end |
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output.
46 47 48 |
# File 'lib/graph/function.rb', line 46 def output @output end |
#step ⇒ Object
Returns the value of attribute step.
47 48 49 |
# File 'lib/graph/function.rb', line 47 def step @step end |
#terminal ⇒ Object
Returns the value of attribute terminal.
46 47 48 |
# File 'lib/graph/function.rb', line 46 def terminal @terminal end |
#trials ⇒ Object
Returns the value of attribute trials.
48 49 50 |
# File 'lib/graph/function.rb', line 48 def trials @trials end |