Skip to content

Commit

Permalink
Correct update_by rolling_wavg calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbooker42 committed May 24, 2024
1 parent 58e86e6 commit 4af6774
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public void pop(int count) {
@Override
public void writeToOutputChunk(int outIdx) {
if (windowValues.size() == nullCount) {
// Looks weird but returning NaN is consistent with Numeric#wavg and AggWAvg
outputValues.set(outIdx, NULL_DOUBLE);
} else {
final double weightedValSum = windowValues.evaluate();
Expand Down

0 comments on commit 4af6774

Please sign in to comment.