class Crowbar::Evolution::Candidate

Overview

Represents a scored individual candidate in the evolutionary population.

Defined in:

crowbar/evolution/candidate.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(buffer : Buffer, fitness : Float64 = 0.0, generation : Int64 = 0_i64, mutation_history : Array(String) = [] of String, feature : String | Nil = nil, coverage_hash : UInt64 | Nil = nil) #

Instance Method Detail

def buffer : Buffer #

def buffer=(buffer : Buffer) #

def clone : Candidate #

def coverage_hash : UInt64 | Nil #

def coverage_hash=(coverage_hash : UInt64 | Nil) #

def feature : String | Nil #

def feature=(feature : String | Nil) #

def fitness : Float64 #

def fitness=(fitness : Float64) #

def generation : Int64 #

def generation=(generation : Int64) #

def mutation_history : Array(String) #

def mutation_history=(mutation_history : Array(String)) #