public void countOut() {
        if (this.type != NodeType.INPUT) {
            double out = 0.0;
            for (int i = 0; i < getIncomingLinks().size(); i++) {
                out += getIncomingLinks().get(i).getWeight() * getIncomingLinks().get(i).getIn_node().getPotential();
            }
            double newPower = activationFfermi(out);  // activation function  
            this.setPotential(newPower);
        }
    }