Open joelcarlson opened 8 years ago
Want me to tackle this? I do enjoy Rcpp.
If you're up for it, I would be delighted! Would involve a pretty significant rewrite, but could be pretty fun. This website may be of some use:
http://en.literateprograms.org/Median_cut_algorithm_(C_Plus_Plus)
Cool! I'm not sure quite when I'll get to it but it looks like a fun problem.
Currently, the implementation of median cut is in R, and uses lists. This is not efficient as every time you modify a list in R it is copied.
Converting this to C++ would greatly speed up the process. Would also allow use of push and pop, which are missing from R lists.