Back to list

Conversion of R package into Matlab

Details

Porting R code of ‘hit-and-ran’ package into Matlab

Translation of R code from “hit-and-ran” package (https://cran.r-project.org/web/packages/hitandrun/ index.html) for a uniform sampling choice of points from the border or inside of convex objects. This algorithm can be used to solve optimization problems.

After analyzing the source code of the package, the developer offered to keep part of the package in unchanged form, with the help of wrappers for the code that was realized in C. They were then compiled into mex files to be called from Matlab.

The R code has been translated into Matlab language, also a detailed documentation of the final decision was also written.

Industries
Development time
2 weeks 1 developer