private boolean doOp (NodeOps op, double threshold, double input) {
        switch (op) {
            case GREATER_THAN:
                return input > threshold;
            case LESS_THAN:
                return input < threshold;
            case GREATER_THAN_OR_EQUAL_TO:
                return input >= threshold;
            case LESS_THAN_OR_EQUAL_TO:
                return input <= threshold;
            case ADDITION:
                _totalInput = _totalInput + (threshold / NeuralNets.MAX_INPUT);
                return true;
            case SUBTRACTION:
                _totalInput = _totalInput - (threshold / NeuralNets.MAX_INPUT);
                return true;
            case MULTIPLICATION:
                _totalInput = _totalInput * (threshold / NeuralNets.MAX_INPUT);
                return true;
            case DIVISION:
                _totalInput = _totalInput / (threshold / NeuralNets.MAX_INPUT);
                return true;
            default:
                return false;
        }
    }