What's the difference between gammainc & igamma? Which one should I use to compute incomplete upper gamma function? Which one is scaled??
3 次查看(过去 30 天)
显示 更早的评论
Incomplete upper gamma function
0 个评论
采纳的回答
John D'Errico
2018-6-25
igamma lives in the stats toolbox. It gives you an upper tail integral.
gammainc lives in MATLAB proper. gammainc is scaled.
The two functions also swap meanings of the arguments. So be careful.
1 - igamma(5,2)/gamma(5)
ans =
0.0526530173437112
gammainc(2,5)
ans =
0.0526530173437111
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Special Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!