Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.neural.networks.training.genetic
Class GeneticScoreAdapter

    java.lang.Object
      org.encog.neural.networks.training.genetic.GeneticScoreAdapter

All Implemented Interfaces:
  CalculateGenomeScore

    public class GeneticScoreAdapter

extends Object
implements CalculateGenomeScore

This adapter allows a CalculateScore object to be used to calculate a Genome's score, where a CalculateGenomeScore object would be called for.

Constructor Summary
`GeneticScoreAdapter(CalculateScore calculateScore)` Construct the adapter.

Method Summary
`double` | `calculateScore(Genome genome)` Calculate the genome's score.
`boolean` | `shouldMinimize()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### GeneticScoreAdapter

    public GeneticScoreAdapter(CalculateScore calculateScore)

  Construct the adapter.

  Parameters:
    `calculateScore` - The CalculateScore object to use.

Method Detail

### calculateScore

    public final double calculateScore(Genome genome)

  Calculate the genome's score.

  Specified by:
    `calculateScore` in interface `CalculateGenomeScore`
  Parameters:
    `genome` - The genome to calculate for.
  Returns:
    The calculated score.

### shouldMinimize

    public final boolean shouldMinimize()

  Specified by:
    `shouldMinimize` in interface `CalculateGenomeScore`
  Returns:
    True, if the score should be minimized.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.