Class PerRowFitnessFunction

All Implemented Interfaces:
FitnessFunction, java.io.Serializable

public class PerRowFitnessFunction
extends java.lang.Object
implements FitnessFunction

Creates a single output series whose value is 0 for rows where every output in Q is equal to those in desQ, and a 1 otherwise. Equivalent to a series which is only correct when all outputs are correct. Since the corresponding desQ for this series will be all 0s (all rows correct at all outputs) then its not really suitable for use with a correlation fitness function.

See Also:
Serialized Form

Constructor Summary
PerRowFitnessFunction(FitnessFunction inFF)
          Creates a new instance of PerLineFF
Method Summary
 double getFitness(SampleData[] ins, SampleData[] Q, SampleData[] desQ, double tSetup)
 java.lang.String toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public PerRowFitnessFunction(FitnessFunction inFF)
Creates a new instance of PerLineFF
Method Detail


public double getFitness(SampleData[] ins,
                         SampleData[] Q,
                         SampleData[] desQ,
                         double tSetup)
Specified by:
getFitness in interface FitnessFunction


public java.lang.String toString()
toString in class java.lang.Object