Is it possible to call a R statistics function to optimize C# function

后端 未结 3 1036
挽巷
挽巷 2020-12-16 05:51

I want to know if it\'s possible to call r statistics optimization function (here I want to use regnoud) from C# while the function to be optimized is written in C#. I fou

3条回答
  •  执念已碎
    2020-12-16 06:20

    http://www.codeproject.com/Articles/25819/The-R-Statistical-Language-and-C-NET-Foundations

    Check out something like this. Now I don't know much about C# so if I say anything that is impossible please don't hurt me:

    Try to save the function that you want optimized as a character in C#, and send it to R using this StatConnector library (I have some limited experience with it.) Let's say you saved the equation as 'z' within R, you can then call your R scripts with 'get(z)' as one of the variables.

提交回复
热议问题