This is a somewhat non-response answer.
There are many ICP options. The choice of design was at least partially organized by the end of the 90s. the work of Pulli, Rusinkevich and Levoy. If you intend to use ICP for anything remotely important (translation: "more than just assigning a class"), you must understand the tradeoffs.
Thus, it is best to take one of the existing implementations and transfer it to R.
Chris A.
source share