public static double err_sum(double[] obs, double[] sim) {
        double volError = 0;
        for (int i = 0; i < sim.length; i++) {
            volError += (sim[i] - obs[i]);
        }
        return volError;
    }