[mlpack-git] [mlpack/mlpack] Hilbert R tree (#664)
Ryan Curtin
notifications at github.com
Thu Jun 2 20:10:43 EDT 2016
> + for(std::list<arma::Col<uint64_t>>::iterator it = otherDataset->begin(); it != otherDataset->end(); it++)
> + {
> + localDataset->push_back(*it);
> + }
> + largestValue = localDataset->end();
> + if(otherDataset->size() > 0)
> + largestValue--;
> + }
> +}
> +
> +template<typename ElemType>
> +arma::Col<uint64_t> DiscreteHilbertValue::
> +CalculateValue(const arma::Col<ElemType> &pt)
> +{
> + arma::Col<uint64_t> res(pt.n_rows);
> + constexpr int order = 64; // The number of bits that we can store
Hm, is this the right order if ElemType is a float? Or should we be using `uint32_t` in that case? It would not be too hard to do a little template metaprogramming to figure out the right type to use (`uint32_t` or `uint64_t`), but I am not 100% sure if the order should be 32 if ElemType is a float, you would know better than me.
---
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/664/files/ab890dff6b4b617b5309af53950c6cac97d994d6#r65640119
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160602/ea589e98/attachment.html>
More information about the mlpack-git
mailing list