class YAGA::Chromosomes::Equation
- YAGA::Chromosomes::Equation
- Reference
- Object
Included Modules
Defined in:
yaga/chromosomes/equation.crConstant Summary
-
COMMAND_RANGE =
Array(UInt8).new(14) do |index| index.to_u8 end
-
GENOME_SIZE =
64_u8
Constructors
- .new(num_inputs : UInt32, layer_index : UInt32, chromosome_index : UInt32, genome_size = GENOME_SIZE, command_range : Array(UInt8) = COMMAND_RANGE)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #activate(inputs : Array(Float64)) : Float64
- #crossover(other : Chromosome) : Void
- #mutate : Void
- #randomize : Void
- #replace(other : Chromosome) : Void
- #to_json(json : JSON::Builder) : Void
Instance methods inherited from module YAGA::Chromosome(Array(UInt8), Array(Float64), Float64)
activate(inputs : U(Float64)) : V
activate,
chromosome_index
chromosome_index,
crossover(other : Chromosome(T(UInt8), U(Float64), V)) : Void
crossover,
genes
genes,
layer_index
layer_index,
mutate : Void
mutate,
num_inputs
num_inputs,
randomize : Void
randomize,
replace(other : Chromosome(T(UInt8), U(Float64), V)) : Void
replace,
same?(other : Chromosome) : Bool
same?,
size : UInt64
size,
to_json(json : JSON::Builder) : Void
to_json,
update_random(random) : Void
update_random
Constructor methods inherited from module YAGA::Chromosome(Array(UInt8), Array(Float64), Float64)
new(num_inputs, layer_index, chromosome_index)new(pull : JSON::PullParser) new
Constructor Detail
def self.new(num_inputs : UInt32, layer_index : UInt32, chromosome_index : UInt32, genome_size = GENOME_SIZE, command_range : Array(UInt8) = COMMAND_RANGE)
#