org.jgap.gp.function

# Package org.jgap.gp.function

Functions to use with Genetic Programming.

See: Description

• Class Summary
Class Description
Abs
Returns the absolute value of a number.
The add operation with three parameters (X + Y + Z).
The add operation with four parameters (W + X + Y + Z).
The add operation that stores the result in internal memory afterwards.
Stores a value in the internal memory but adds the value already stored in the target memory cell before storing it.
And
The boolean and operation.
ArcCosine
The arc cosine command.
ArcSine
The arc sine command.
ArcTangent
The arc tangent command.
Ceil
Returns the smallest (closest to negative infinity) double/float value that is not less than the argument and is equal to a mathematical integer.
CharacterProvider
Returns a single character out of a set of given characters.
Cosine
The cosine command.
CountMatrix
Counts either the elements in a row, in a column or in a diagonal of a two-dimensional matrix in internal memory.
Divide
The divide operation.
Equals
The equals operation.
ExchangeMemory
Exchanges the values of two memory cells.
Exp
The exponential operation.
Floor
Returns the largest (closest to positive infinity) double/float value that is not greater than the argument and is equal to a mathematical integer.
ForLoop
The for-loop.
ForXLoop
The for-loop loop from 0 to X-1.
GreaterThan
The Greater Than (x > y) operation.
If
The if-then construct.
IfDyn
The if-then construct with a dynamic number of children.
IfElse
The if-then-else construct.
Increment
The increment operation.
IncrementMemory
Increments the value of a memory cell and returns the incremented value.
LesserThan
The Lesser Than (x < y) operation.
Log
Returns the natural logarithm (base e) of a double value.
Loop
A loop that executes a given number of times.
Max
Returns the bigger of two values.
Mean
This class calculates the Mean of N numbers.
Min
Returns the smaller of two values.
Modulo
The modulo operation.
Multiply
The multiply operation.
Multiply3
The multiply operation with three argument (X * Y * Z).
Not
The boolean not operation.
Or
The boolean or operation.
Pop
Pops a value from the stack after it has been pushed onto it (PushCommand).
Pow
The power operation.
Push
Pushes a value onto the stack.
RandomGenerator
Returns a double/float value with a positive sign, greater than or equal to 0.0 and less than 1.0.
Reads a value from a two-dimensional matrix in internal memory.
Reads a value from the internal memory.
Reads a value from the internal indexed memory.
ReplaceInMatrix
Replaces occurrences of specified characters in a two-dimensional matrix with a given other character.
ResetMatrix
Resets a two-dimensional matrix in internal memory by setting each cell to an initial value.
Round
Returns the closest value to the argument.
Sine
The sine operation.
StoreTerminal
Stores a value in the internal memory.
StoreTerminalIndexed
Stores a value in the internal indexed memory.
SubProgram
A connector for independent subprograms (subtrees).
Subtract
The subtract operation.
Tangent
The tangent command.
TransferMemory
Transfers a memory value to another memory cell.
Tupel
Holds a tupel of n values of arbitrary type.
WriteToMatrix
Stores a value to a two-dimensional matrix in internal memory.
Xor
The boolean xor operation.
• Enum Summary
Enum Description
CountMatrix.CountMode
CountMatrix.CountType
ReplaceInMatrix.ReplacementMode

## Package org.jgap.gp.function Description

Functions to use with Genetic Programming. A function has at least one return type.