[mlpack-git] [mlpack/mlpack] Universal B tree implementation (#746)

lozhnikov notifications at github.com
Thu Aug 18 04:40:12 EDT 2016


> +    for (size_t d = 0; d < dim; d++)
> +    {
> +      lower = loBound(d, i) - point[d];
> +      higher = point[d] - hiBound(d, i);
> +
> +      // Since only one of 'lower' or 'higher' is negative, if we add each's
> +      // absolute value to itself and then sum those two, our result is the
> +      // nonnegative half of the equation times two; then we raise to power Power.
> +      sum += pow((lower + fabs(lower)) + (higher + fabs(higher)),
> +          (ElemType) MetricType::Power);
> +    }
> +
> +    if (sum < minSum)
> +      minSum = sum;
> +  }
> +

This is useless since I bound each rectangle in the series by the minimum bounded rectangle (see `AddBound()`).
```
loBound(k, numBounds) = std::max(loCorner[k], bounds[k].Lo());
hiBound(k, numBounds) = std::min(bounds[k].Hi(), hiCorner[k]);
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/746/files/8c5a97dcb1641ae6c98edc70426fb19f5cd7cb79#r75268763
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160818/51a1bfe9/attachment-0001.html>


More information about the mlpack-git mailing list