Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 C 语言编码非常陌生,我正在计算给定值和自由度的卡方分布的 CDF。是否有执行此操作的函数或库,或者我需要自己编写此代码?
任何帮助,将不胜感激
如果我是对的,您可以使用 GNU 科学图书馆。查找函数gsl_ran_chisq,它从提供多个自由度的卡方分布中返回随机值。
gsl_ran_chisq
您可以在此链接上查看与卡方和许多其他分布相关的 C 函数 。只需安装库。也可以在此处找到指向 lib 主页的链接。
我希望我有所帮助。