jaga.experiment
Class  MultiOutputExperiment
java.lang.Object
  |
  +--jaga.experiment.MultiOutputExperiment
- All Implemented Interfaces: 
- Experiment, java.io.Serializable
- Direct Known Subclasses: 
- CombinationalBLIFExperiment, ConfigurableRandomInputMultiOutputExperiment
- public class MultiOutputExperiment- extends java.lang.Object- implements Experiment
Multiple Output Experiments allow many experiments sharing inputs to be bundled into the same one.
 This is useful for example to combine many experiments, each deciding the fitness of different outputs
 of a circuit to be combined into one.
- See Also: 
- Serialized Form
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
MultiOutputExperiment
public MultiOutputExperiment()
MultiOutputExperiment
public MultiOutputExperiment(Experiment[] exps)
- Creates new MultiOutputExperiment
MultiOutputExperiment
public MultiOutputExperiment(Experiment[] exps,
                             int main)
- Creates new MultiOutputExperiment
getFitness
public double getFitness(SampleData[] in,
                         SampleData[] out)
- returns a fitness associated to a given input/output pair for
 this experiment.  The fitness is a double and is in adjusted
 fitness format.  From 0 to 1, 1 being perfectly fit.- 
- Specified by: 
- getFitnessin interface- Experiment
 
- 
- Parameters:
- in- array of inputs
- out- array of outputs
 
generateInput
public SampleData[] generateInput()
- generates an array of inputs suitable for this experiment
 using default input sample separation.- 
- Specified by: 
- generateInputin interface- Experiment
 
generateInput
public SampleData[] generateInput(int inputSampleSeparation)
- generates an array of inputs suitable for this experiment.- 
- Specified by: 
- generateInputin 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.
 
getNumOfInputs
public int getNumOfInputs()
- 
- Specified by: 
- getNumOfInputsin interface- Experiment
 
getNumOfOutputs
public int getNumOfOutputs()
- 
- Specified by: 
- getNumOfOutputsin interface- Experiment
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object