jaga.experiment
Class MultipleSampleAvgFitnessFunction

java.lang.Object
  |
  +--jaga.experiment.MultipleSampleAvgFitnessFunction
All Implemented Interfaces:
FitnessFunction, java.io.Serializable

public class MultipleSampleAvgFitnessFunction
extends java.lang.Object
implements FitnessFunction

This Wrapper fitness function extracts multiple output samples from the actual output by averaging values at certain points.

See Also:
Serialized Form

Constructor Summary
MultipleSampleAvgFitnessFunction(FitnessFunction inFF, int[] sampleLength, int[] samplePos)
           
MultipleSampleAvgFitnessFunction(FitnessFunction inFF, int samplePeriod, int[] selectedSamples, int iss, double tSetup)
           
MultipleSampleAvgFitnessFunction(FitnessFunction inFF, int samplePeriod, int iss, double tSetup)
          Creates a new instance of SingleSampleAvgFitnessFunction
 
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

MultipleSampleAvgFitnessFunction

public MultipleSampleAvgFitnessFunction(FitnessFunction inFF,
                                        int[] sampleLength,
                                        int[] samplePos)

MultipleSampleAvgFitnessFunction

public MultipleSampleAvgFitnessFunction(FitnessFunction inFF,
                                        int samplePeriod,
                                        int[] selectedSamples,
                                        int iss,
                                        double tSetup)

MultipleSampleAvgFitnessFunction

public MultipleSampleAvgFitnessFunction(FitnessFunction inFF,
                                        int samplePeriod,
                                        int iss,
                                        double tSetup)
Creates a new instance of SingleSampleAvgFitnessFunction
Method Detail

getFitness

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

toString

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