private void setCustomParams(double[] params) {

        for (int i = 0; i < 5; i++) {
            if (params[i] == -1) {
                params[i] = methodParams.get(this.getCalcMethod().getId())[i];
                methodParams.put(CalculationMethod.Custom.getId(), params);
            } else {
                methodParams.get(CalculationMethod.Custom.getId())[i] = params[i];
            }
        }
        this.setCalcMethod(CalculationMethod.Custom);
    }