import java.io.*; import java.util.*; /** * Used to store inputs and desired outputs for use in training NeuralNetworks. * * @author Jeff Chen * @version %I%,%G% */ public class Case{ double[] input; double[] output; /** * Sets up the case class. * * @param input the input * @param output the expected output */ public Case(double[] input,double[] output){ this.input=input; this.output=output; } /** * Returns the input for this Case. * * @return the input */ public double[] getInput(){ return this.input; } /** * Returns the expected output for this Case. * * @return the expected output */ public double[] getOutput(){ return this.output; } }