Documentation of 'org.encog.ml.prg.species.CompareEncogProgram' Java class
CompareEncogProgram
org.encog.ml.prg.species

Class CompareEncogProgram



  • public class CompareEncogProgram
    extends java.lang.Object
    Compare two Encog programs for speciation. Count the nodes that are the different, the higher the compare value, the more different two genomes are. Only the opcodes are compared, the actual values are not. This causes the comparison to be more about structure than actual values. Two genomes with the same structure, and different values, can be identical.
    • Constructor Detail

      • CompareEncogProgram

        public CompareEncogProgram()
    • Method Detail

      • compare

        public double compare(EncogProgram prg1,
                              EncogProgram prg2)
        Compare program 1 and 2 node for node. Lower values mean more similar genomes.
        Parameters:
        prg1 - The first program.
        prg2 - The second program.
        Returns:
        The result of the compare.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.