class GaseousAbsorptionAux {

    double convolve(double lower, double upper, List<double[]> coeffhighres) {
        double[] o3absorption = coeffhighres.get(1);
        double[] O3wavelength = coeffhighres.get(0);
        int length = o3absorption.length;
        int weight = 0;
        double totalValue = 0.0;
        for (int i = 0; i < length; i++) {
            if (O3wavelength[i] >= lower && O3wavelength[i] <= upper) {
                weight += 1;
                totalValue += o3absorption[i];
            }
        }
        return weight > 0 ? (totalValue / weight) : 0.0;
    }

      GaseousAbsorptionAux();

}