package ac.essex.gp.neural;

/**
 * Connects one neuron to another. Connections work in only one direction
 *
 * @author Olly Oechsle, University of Essex, Date: 06-Mar-2007
 * @version 1.0
 */
public class Connection {

    protected Neuron from;
    protected Neuron to;
    protected double weight;

    public Connection(Neuron from, Neuron to) {
        this.from = from;
        this.to = to;
        this.weight = (Math.random() * 4) - 2;
    }

}
