Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > GeneticAlgorithm > RSGeneticAlgorithm > Classes > TRSGAGene > Methods

TRSGAGene.GeneAsInt64(TRSEncodedBits) Method

Scroll Prev Top Next More

Extracts this gene's value from the Bits chromosome parameter. The function allows read access to the gene as 64-bit integer values. The equivalent    SetGeneAsInt64 method provides write access. The GeneAsInt64 function will attempt to translate the chromosome bits of this gene to a 64-bit integer, irregardless of the type specified in GeneType . In other words, the gene does not enforce types, it just helps you to translate bits into a type. You should use the GeneType property to determine the type of the gene before using the accessor functions.

Note: The TRSGAGene class automatically retrieves the appropriate value from the correct place in the Bits chromosome using the Offset and Size properties. The overloaded    GeneAsInt64 method allows you to change the offset into the bits you want to use.
 

Namespace: RSGeneticAlgorithm

Parameters

Bits

Type: TRSEncodedBits

Return Value

Type: Int64

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb