Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Crowbar::Evolution::Candidate
Inherits
Reference
<
Object
Represents a scored individual candidate in the evolutionary population.
Constructors
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)
Source
Instance methods
buffer
Source
buffer=
(buffer :
Buffer
)
Source
clone
Source
coverage_hash
Source
coverage_hash=
(coverage_hash :
UInt64
|
Nil
)
Source
feature
Source
feature=
(feature :
String
|
Nil
)
Source
fitness
Source
fitness=
(fitness :
Float64
)
Source
generation
Source
generation=
(generation :
Int64
)
Source
mutation_history
Source
mutation_history=
(mutation_history :
Array
(
String
))
Source