Sha256: a028ef27103f838854fc1e63cba0ff7a71c4de2f7a84a023bfdbb95c0648de9c
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
require "ga/version" require "ga/zoo" module GA def self.included(cls) cls.extend(ClassMethods) end module ClassMethods def new_ga_zoo GA::Zoo.new(self) end def evolve(total_units = 32, generations = 100, crossover_rate = 0.8, muration_rate = 0.1) new_ga_zoo.evolve(total_units, generations, crossover_rate, muration_rate) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ga-0.1.0 | lib/ga.rb |