We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e9bb78 + 3dc6e4f commit 42520bcCopy full SHA for 42520bc
include/stochtree/variance_model.h
@@ -41,7 +41,7 @@ class GlobalHomoskedasticVarianceModel {
41
data_size_t n = residuals.rows();
42
double sum_sq_resid = 0.;
43
for (data_size_t i = 0; i < n; i++) {
44
- sum_sq_resid += (residuals(i) * residuals(i)) * weights(i);
+ sum_sq_resid += (residuals(i) * residuals(i)) / weights(i);
45
}
46
return b + (0.5 * sum_sq_resid);
47
0 commit comments