Skip to content

Commit

Permalink
fix intersect ndv
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 21, 2023
1 parent 0d20a61 commit a61450f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ private double overlappingDistinctValues(StatisticRange other) {
double overlapPercentOfRight = other.overlapPercentWith(this);
double overlapDistinctValuesLeft = overlapPercentOfLeft * distinctValues;
double overlapDistinctValuesRight = overlapPercentOfRight * other.distinctValues;
double minInputDistinctValues = minExcludeNaN(this.distinctValues, other.distinctValues);

return minExcludeNaN(minInputDistinctValues,
maxExcludeNaN(overlapDistinctValuesLeft, overlapDistinctValuesRight));
return minExcludeNaN(overlapDistinctValuesLeft, overlapDistinctValuesRight);
}

public static double minExcludeNaN(double v1, double v2) {
Expand Down

0 comments on commit a61450f

Please sign in to comment.