Class: Graph::Function::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/graph/function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



54
55
56
57
58
59
60
61
# File 'lib/graph/function.rb', line 54

def initialize
  @terminal = 'x11'
  @output = '.'
  @step = (0..10_000).step(1000).to_a
  # these are particular to GF, not Gnuplot
  @trials = 1
  @memory = false
end

Instance Attribute Details

#memoryObject

Returns the value of attribute memory.



49
50
51
# File 'lib/graph/function.rb', line 49

def memory
  @memory
end

#outputObject

Returns the value of attribute output.



47
48
49
# File 'lib/graph/function.rb', line 47

def output
  @output
end

#stepObject

Returns the value of attribute step.



48
49
50
# File 'lib/graph/function.rb', line 48

def step
  @step
end

#terminalObject

Returns the value of attribute terminal.



47
48
49
# File 'lib/graph/function.rb', line 47

def terminal
  @terminal
end

#trialsObject

Returns the value of attribute trials.



49
50
51
# File 'lib/graph/function.rb', line 49

def trials
  @trials
end