Kaydet (Commit) cb283d8f authored tarafından Caolán McNamara's avatar Caolán McNamara

consider borderline outliers as outliers

Change-Id: I138cdcb29b4e38211feb9e2d6a81a6ecb1688084
üst 959fb928
......@@ -351,7 +351,7 @@ static long getMaxNonOutlier(const std::vector<long> &rG, long nAvgDimension)
aEnd = rG.end(); aI != aEnd; ++aI)
{
long nPrimaryChildDimension = *aI;
if (nPrimaryChildDimension <= nAvgDimension * 1.5)
if (nPrimaryChildDimension < nAvgDimension * 1.5)
{
nMaxDimensionNonOutlier = std::max(nPrimaryChildDimension,
nMaxDimensionNonOutlier);
......@@ -370,7 +370,7 @@ static std::vector<long> setButtonSizes(const std::vector<long> &rG,
aI != aEnd; ++aI)
{
long nPrimaryChildDimension = *aI;
if (nPrimaryChildDimension <= nAvgDimension * 1.5)
if (nPrimaryChildDimension < nAvgDimension * 1.5)
aVec.push_back(nMaxNonOutlier);
else
aVec.push_back(nPrimaryChildDimension);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment