class NEAT::BasicNeuronTypes::InputNeuron
Special class of Neuron that takes input from the “real world”¶ ↑
Name of this neuron equates to the parameter name of the input. All inputs are handled with this neuron. This type of neuron only has one input -- from the outside world.
Public Class Methods
input?()
click to toggle source
# File lib/rubyneat/neuron.rb, line 76 def self.input? ; true ; end
Public Instance Methods
express(instance)
click to toggle source
Takes a single input and passes it as is.
# File lib/rubyneat/neuron.rb, line 79 def express(instance) instance.define_singleton_method(@name) {|input| input } end