@@ -0,0 +1,2157 @@
+package com.digiburo.backprop1b.network;%0A%0A/**%0A * Pattern container%0A */%0Aimport java.io.Serializable;%0A%0A/**%0A * Pattern container%0A * %0A */%0Apublic class Pattern implements Serializable %7B%0A%0A    /**%0A     * @param input input pattern%0A     * @param output output pattern%0A     */%0A    public Pattern(double%5B%5D input, double%5B%5D output) %7B%0A    %09_input = (double%5B%5D) input.clone();%0A    %09_output = (double%5B%5D) output.clone();%0A    %7D%0A    %0A    /**%0A     * @return input pattern%0A     */%0A    public double%5B%5D getInput() %7B%0A    %09return(_input);%0A    %7D%0A    %0A    /**%0A     * @return output pattern%0A     */%0A    public double%5B%5D getOutput() %7B%0A    %09return(_output);%0A    %7D%0A    %0A    /**%0A     * @return true, this pattern passed training%0A     */%0A    public boolean isTrained() %7B%0A    %09return(_trained);%0A    %7D%0A    %0A    /**%0A     * @param arg true, this pattern passed training%0A     */%0A    public void setTrained(boolean arg) %7B%0A    %09_trained = arg;%0A    %7D%0A%0A%09/**%0A%09 * Return object contents as a String%0A%09 * %0A%09 * @return object contents as a String%0A%09 */%0A%09public String toString() %7B%0A%09%09String result = %22trained:%22 + _trained;%0A%0A%09%09result += %22 input %22;%0A%09%09if (_input == null) %7B%0A%09%09%09result += %22 null %22;%0A%09%09%7D else %7B%0A%09%09%09for (int ii = 0; ii %3C _input.length; ii++) %7B%0A%09%09%09%09result += _input%5Bii%5D + %22 %22;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09result += %22 output %22;%0A%09%09if (_output == null) %7B%0A%09%09%09result += %22 null %22;%0A%09%09%7D else %7B%0A%09%09%09for (int ii = 0; ii %3C _output.length; ii++) %7B%0A%09%09%09%09result += _output%5Bii%5D + %22 %22;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09return(result);%0A%09%7D%0A%0A%09/**%0A%09 * Write pattern to stdout%0A%09 */%0A%09public void dumpPattern() %7B%0A%09%09System.out.println(%22output pattern%22);%0A%09%09for (int ii = 0; ii %3C _output.length; ii++) %7B%0A%09%09%09System.out.println(ii + %22 %22 + _output%5Bii%5D);%0A%09%09%7D%0A%0A%09%09System.out.println(%22input pattern%22);%0A%09%09for (int ii = 0; ii %3C _input.length; ii++) %7B%0A%09%09%09System.out.println(ii + %22 %22 + _input%5Bii%5D);%0A%09%09%7D%0A%09%7D%0A    %0A    /**%0A     * Input pattern%0A     */%0A    private double%5B%5D _input;%0A    %0A    /**%0A     * Output pattern%0A     */%0A    private double%5B%5D _output;%0A    %0A    /**%0A     * true, this pattern has passed training%0A     */%0A    private boolean _trained = false;%0A    %0A    /**%0A     * eclipse generated%0A     */%0A    private static final long serialVersionUID = 9154436050951080903L;%0A%7D%0A%0A

Create Pattern.java