gamma function with two parameters
조회 수: 25 (최근 30일)
이전 댓글 표시
i have to evaluate gamma function with two parameters. if i attempt to use gamma(a,b) i am getting error in matlab as too many input arguements. it is taking only one arguement. as per the attachment , how can i find the received power?
댓글 수: 2
VBBV
2024년 3월 28일
편집: VBBV
2024년 3월 28일
By definition in https://en.wikipedia.org/wiki/Gamma_function
it uses single parameter for defining a characteristic, Beta function uses two parameters. Do you mean beta instead of gamma ? May be you mean incomplete gamma function , if thats what you want, then try this
Dyuman Joshi
2024년 3월 28일
"how can i find the received power?"
I don't understand what this means in the context of this question.
The mathematical definition of gamma function includes a single independent variable only, subsequently so does the matlab function gamma.
It's not clear what exactly you want to do.
답변 (2개)
John D'Errico
2024년 3월 28일
편집: John D'Errico
2024년 3월 28일
There is no common definition of a two parameter gamma "function" in mathematics. So whatever you are asking, you need to be more specific, if you have some specific thing you need to compute.
The two possibilities I can think of (and I am sure I may have missed something else, as there are infinitely many things you MIGHT want to do) are:
- A two parameter gamma probability distribution
- An incomplete gamma function
Each of those possibilities is available in MATLAB.
You can find the two parameter gamma PDF in the form of
help gampdf
And the incomplete gamma function, which is really an integral where the second parameter is the upper limit for that integral. MATLAB normalizes this integral by then dividing by gamma(x), because most of the time, that is how you will be using it.
help gammainc
Again, you may want to do something else. I've only made my two best guesses at what you may be thinking about.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!