public void evaluateNode(){
        double sum = 0;
        for(Link l:inputNodes){
            if(l.isActive()) {
                sum += l.getWeight() * l.getStartNode().getValue();
            }
        }
        switch(functionType){
            case 0: {
                value = sum;
                break;
            }
            case 1: {
                value = sigmoid(sum);
                break;
            }
            default: {
                break;
            }
        }
    }