What's the difference between gammainc & igamma? Which one should I use to compute incomplete upper gamma function? Which one is scaled??

6 ビュー (過去 30 日間)
Incomplete upper gamma function

採用された回答

John D'Errico
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 件)

カテゴリ

Help Center および File ExchangeSpecial Functions についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by