[mlpack-git] [mlpack/mlpack] Random projection trees (#726)

Ryan Curtin notifications at github.com
Fri Aug 5 10:40:59 EDT 2016


> +  if (values[0] == values[values.size() - 1])
> +    return false;
> +
> +  splitVal = values[values.size() / 2];
> +
> +  return true;
> +}
> +
> +template<typename BoundType, typename MatType>
> +bool RPTreeMeanSplit<BoundType, MatType>::GetMeanMedian(
> +    const MatType& data,
> +    const arma::uvec& samples,
> +    arma::Col<ElemType>& mean,
> +    ElemType& splitVal)
> +{
> +  std::vector<ElemType> values(samples.n_elem);

Same here, I think the Armadillo object will be a better choice.

---
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/726/files/e14a26f3e209af0608cb61ecaa5e30f253e72e9b#r73703177
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160805/90e0055c/attachment.html>


More information about the mlpack-git mailing list