y***6 发帖数: 46 | 1 I am a statistics major and green in C programming. To my best knowledge, c
code for random number
generation (say uniform, norm,beta,chi-square etc) is hard to find online.
My question is: is there a free C
library that includes c source code for random number generation? It would
be pain in the ass if I have to
code it up by myself.
I understand we can call R random number generating function in C, but that
is not what I want. I would
appreciate if anyone can help. Thanks a lot! | n*****n 发帖数: 3123 | 2 R source code里有C code, 改改就可以了 | F******n 发帖数: 160 | 3 GSL (GNU Scientific Library) 都十多年了:
http://www.gnu.org/software/gsl/
随机数:
http://www.gnu.org/software/gsl/manual/html_node/Random-Number-
这种库估计还有很多.
c
that
【在 y***6 的大作中提到】 : I am a statistics major and green in C programming. To my best knowledge, c : code for random number : generation (say uniform, norm,beta,chi-square etc) is hard to find online. : My question is: is there a free C : library that includes c source code for random number generation? It would : be pain in the ass if I have to : code it up by myself. : I understand we can call R random number generating function in C, but that : is not what I want. I would : appreciate if anyone can help. Thanks a lot!
| y***6 发帖数: 46 | | f***a 发帖数: 329 | 5 C: GNU GSL
C/C++: GSL, BOOST, Neyman(? maybe I remember the name wrong. not recommend
this one though)
Or "Rinsider", you can use this library to call R functions in C++.
Go for BOOST ba~ easy to use and documentation is good. |
|