Skip to content

📦 SQA::GeneticProgram::Individual

Description

Represents an individual trading strategy with specific parameters

Source Information

Defined in: lib/sqa/gp.rb:37

Inherits from: Object

🔨 Instance Methods

#genes()

Returns the value of attribute genes.

Source Location

lib/sqa/gp.rb:38


#genes=(value)

Sets the attribute genes

Parameters

Name Type Description
value Any the value to set the attribute genes to.
Source Location

lib/sqa/gp.rb:38


#fitness()

Returns the value of attribute fitness.

Source Location

lib/sqa/gp.rb:38


#fitness=(value)

Sets the attribute fitness

Parameters

Name Type Description
value Any the value to set the attribute fitness to.
Source Location

lib/sqa/gp.rb:38


#initialize(genes: = {}, fitness: = nil)

Returns

Type: Individual

a new instance of Individual

Source Location

lib/sqa/gp.rb:40


#clone()

Source Location

lib/sqa/gp.rb:45


#to_s()

Source Location

lib/sqa/gp.rb:49


📝 Attributes

🔄 genes read/write

Returns the value of attribute genes.

🔄 fitness read/write

Returns the value of attribute fitness.