jaga.pj.circuits.experiment
Class DLatchExperiment

java.lang.Object
  |
  +--jaga.pj.circuits.experiment.DLatchExperiment
All Implemented Interfaces:
Experiment, java.io.Serializable

public class DLatchExperiment
extends java.lang.Object
implements Experiment

See Also:
Serialized Form

Constructor Summary
DLatchExperiment(int inputDataLength)
           
DLatchExperiment(int inputDataLength, double tSetup)
          Creates new DLatchExperiment
 
Method Summary
 SampleData[] generateInput()
          generates an array of inputs suitable for this experiment.
 SampleData[] generateInput(int inputSampleSeparation)
          generates an array of inputs suitable for this experiment.
 double getFitness(SampleData[] in, SampleData[] out)
          Fitness computed by calculating what the output be and if output is this then adding a fitness point.
 int getNumOfInputs()
           
 int getNumOfOutputs()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLatchExperiment

public DLatchExperiment(int inputDataLength,
                        double tSetup)
Creates new DLatchExperiment

DLatchExperiment

public DLatchExperiment(int inputDataLength)
Method Detail

getFitness

public double getFitness(SampleData[] in,
                         SampleData[] out)
Fitness computed by calculating what the output be and if output is this then adding a fitness point. We may have to be meaner for this to work though...
Specified by:
getFitness in interface Experiment
Parameters:
out - outputs assumed to be with sampleSeparation = 1

generateInput

public SampleData[] generateInput()
generates an array of inputs suitable for this experiment.
Specified by:
generateInput in interface Experiment
Parameters:
inputSampleSeparation - relative frequency of input to output samples. If this is n, then n outputs will be sampled for every change in inputs.

generateInput

public SampleData[] generateInput(int inputSampleSeparation)
Description copied from interface: Experiment
generates an array of inputs suitable for this experiment.
Specified by:
generateInput in interface Experiment
Following copied from interface: jaga.experiment.Experiment
Parameters:
inputSampleSeparation - relative frequency of input to output samples. If this is n, then n outputs will be sampled for every change in inputs.

getNumOfInputs

public int getNumOfInputs()
Specified by:
getNumOfInputs in interface Experiment

getNumOfOutputs

public int getNumOfOutputs()
Specified by:
getNumOfOutputs in interface Experiment

toString

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