class Algorithm::Genetic::Evaluator

evaluate fitness of a gene

Public Instance Methods

fitness(gene) click to toggle source

evaluate fitness, implement by yourself

gene

a instance of Gene class

# File lib/algorithm/genetic/evaluator.rb, line 11
def fitness(gene)
        raise NotImplementedError.new("implement 'fitness' method by yourself.")
end
terminated?(gene) click to toggle source

judgment of termination

gene

a instance of Gene class

# File lib/algorithm/genetic/evaluator.rb, line 18
def terminated?(gene)
        raise NotImplementedError.new("implement 'terminated?' method by yourself.")
end