Skip to content

Reverse order of samplesize variance test to match usage

Created by: piersoh

The current getSampleSize() function expands the sampleSize based on checking the variance of subsequent samples from the beginning, but does so in the opposite order to which getAverageSlidingWindow() actually uses the resulting samples - which takes those from the end. This fix corrects the check so that it operates from the end(newest) items of the queue backwards.

Merge request reports