
double[] decisions = new double[{0}];
for (int i = 0, d = 0, l = {1}; i < l; i++) {{
    for (int j = i + 1; j < l; j++) {{
        double tmp = 0.;
        for (int k = starts[j]; k < ends[j]; k++) {{
            tmp += coeffs[i][k] * kernels[k];
        }}
        for (int k = starts[i]; k < ends[i]; k++) {{
            tmp += coeffs[j - 1][k] * kernels[k];
        }}
        decisions[d] = tmp + inters[d];
        d++;
    }}
}}
