📦 SQA::GeneticProgram::Individual¶
Description
Represents an individual trading strategy with specific parameters
🔨 Instance Methods¶
#genes()¶
Returns the value of attribute genes.
Source Location
#genes=(value)¶
Sets the attribute genes
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute genes to. |
Source Location
#fitness()¶
Returns the value of attribute fitness.
Source Location
#fitness=(value)¶
Sets the attribute fitness
Parameters
| Name | Type | Description |
|---|---|---|
value |
Any |
the value to set the attribute fitness to. |
Source Location
#initialize(genes: = {}, fitness: = nil)¶
Returns
Type: Individual
a new instance of Individual
Source Location
#clone()¶
Source Location
#to_s()¶
Source Location
📝 Attributes¶
🔄 genes read/write¶
Returns the value of attribute genes.
🔄 fitness read/write¶
Returns the value of attribute fitness.