commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MillerUpdatingRegression.java [975:993]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            int idx1 = 0;
            int idx2;
            int ii;
            int jj;
            for (int i = 0; i < beta.length; i++) {
                ii = newIndices[i];
                for (int j = 0; j <= i; j++, idx1++) {
                    jj = newIndices[j];
                    if (ii > jj) {
                        idx2 = ii * (ii + 1) / 2 + jj;
                    } else {
                        idx2 = jj * (jj + 1) / 2 + ii;
                    }
                    covNew[idx1] = cov[idx2];
                }
            }
            return new RegressionResults(
                    betaNew, new double[][]{covNew}, true, this.nobs, rnk,
                    this.sumy, this.sumsqy, this.sserr, this.hasIntercept, false);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MillerUpdatingRegression.java [1086:1104]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            int idx1 = 0;
            int idx2;
            int ii;
            int jj;
            for (int i = 0; i < beta.length; i++) {
                ii = newIndices[i];
                for (int j = 0; j <= i; j++, idx1++) {
                    jj = newIndices[j];
                    if (ii > jj) {
                        idx2 = ii * (ii + 1) / 2 + jj;
                    } else {
                        idx2 = jj * (jj + 1) / 2 + ii;
                    }
                    covNew[idx1] = cov[idx2];
                }
            }
            return new RegressionResults(
                    betaNew, new double[][]{covNew}, true, this.nobs, rnk,
                    this.sumy, this.sumsqy, this.sserr, this.hasIntercept, false);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



