[mlpack-git] [mlpack/mlpack] Spill trees (#747)

sumedhghaisas notifications at github.com
Sat Aug 6 08:28:54 EDT 2016


> +  const StatisticType& Stat() const { return stat; }
> +  //! Return the statistic object for this node.
> +  StatisticType& Stat() { return stat; }
> +
> +  //! Return whether or not this node is a leaf (true if it has no children).
> +  bool IsLeaf() const;
> +
> +  //! Gets the left child of this node.
> +  SpillTree* Left() const { return left; }
> +  //! Modify the left child of this node.
> +  SpillTree*& Left() { return left; }
> +
> +  //! Gets the right child of this node.
> +  SpillTree* Right() const { return right; }
> +  //! Modify the right child of this node.
> +  SpillTree*& Right() { return right; }

I think Left() and Right() functions are more intuitive. In this specific case of course. 

---
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/747/files/a71b57caa90311f5542180bc0553449c3691395d#r73785477
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160806/ba196c4d/attachment.html>


More information about the mlpack-git mailing list