Skip to content

Commit 3e17e80

Browse files
lpatinytargos
authored andcommitted
chore: seems the fix was just to use lowerWhisker and upperWhisker and not to create a Set
1 parent fe2a451 commit 3e17e80

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/x/xRobustDistributionStats.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ export function xRobustDistributionStats(
3939
filteredArray = array;
4040
} else {
4141
filteredArray = new Float64Array(array.length - boxPlot.outliers.length);
42-
const outliersSet = new Set(boxPlot.outliers);
4342
let j = 0;
4443
for (const element of array) {
45-
if (!outliersSet.has(element)) {
44+
if (element >= boxPlot.lowerWhisker && element <= boxPlot.upperWhisker) {
4645
filteredArray[j++] = element;
4746
}
4847
}

0 commit comments

Comments
 (0)