@@ -0,0 +1,2338 @@
+package com.digiburo.backprop1b.network;%0A%0A/**%0A * Arcs connect nodes%0A */%0A%0A/**%0A * Arcs connect nodes%0A *%0A */%0Apublic class Arc extends AbstractArcNode %7B%0A%0A    /**%0A     * Define input node%0A     * @param arg input node%0A     */%0A    public void setInputNode(AbstractNode arg) %7B%0A        _in = arg;%0A    %7D%0A    %0A    /**%0A     * Define output node%0A     * @param arg output node%0A     */%0A    public void setOutputNode(AbstractNode arg) %7B%0A        _out = arg;%0A    %7D%0A    %0A    /**%0A     * Return the node value of input arc%0A     * @return node value of input arc%0A     */%0A    public double getInputValue() %7B%0A        return(_in.getValue());%0A    %7D%0A    %0A    /**%0A     * Return the product of a input node value and arc weight%0A     * @return product of input node value and arc weight%0A     */%0A    public double getWeightedInputValue() %7B%0A        return(_in.getValue() * _weight);%0A    %7D%0A    %0A    /**%0A     * Return the product of a output node error and arc weight%0A     * @return the product of a output node error and arc weight%0A     */%0A    public double getWeightedOutputError() %7B%0A        return(_out.getError() * _weight);%0A    %7D%0A    %0A    /**%0A     * Update link weight by adding new value to current weight%0A     * @param arg new value added to current weight%0A     */%0A    public void updateWeight(double arg) %7B%0A        OutputNode on = (OutputNode) _out;%0A        _weight += arg + on.getMomentum() * _delta;%0A        _delta = arg;%0A    %7D%0A%0A%09/**%0A%09 * Return description of object%0A%09 * %0A%09 * @return description of object%0A%09 */%0A%09public String toString() %7B%0A%09%09String result = %22Arc:%22 + id + %22 weight:%22 + _weight + %22 delta:%22 + _delta;%0A%0A%09%09if (_in == null) %7B%0A%09%09%09result += %22 in:null%22;%0A%09%09%7D else %7B%0A%09%09%09result += %22 in:%22 + _in.getId();%0A%09%09%7D%0A%0A%09%09if (_out == null) %7B%0A%09%09%09result += %22 out:null%22;%0A%09%09%7D else %7B%0A%09%09%09result += %22 out:%22 + _out.getId();%0A%09%09%7D%0A%0A%09%09return (result);%0A%09%7D%0A    %0A    /**%0A     * weights are initialized to a random value%0A     */    %0A    private double _weight = Mathz.getBoundedRandom(-1.0, 1.0);%0A    %0A    /**%0A     * Previous weight change%0A     */%0A    private double _delta;%0A    %0A    /**%0A     * AbstractNode which arc is coming from%0A     */%0A    private AbstractNode _in;%0A    %0A    /**%0A     * AbstractNode which arc is going to%0A     */%0A    private AbstractNode _out;%0A    %0A    /**%0A     * eclipse generated%0A     */%0A    private static final long serialVersionUID = -8884064153744639354L;%0A%7D%0A%0A

Create Arc.java