Quote:
Originally Posted by nikhilgupta345
Probably on how to implement that one symbol in the denominator to the left or (alpha). I think that's another function within itself or something, not completely sure.
|
Besides that detail, the function would be:
PHP Code:
gammadist(x, a, beta)
{
static const e_value = 2.72
return (1/power(beta, a) * themiscoperator * a) * power(x, a-1) * power(e_value, -(x/beta))
}
EDIT:
Quote:
Originally Posted by fysiks
That is capital Gamma. According to wikipedia, it's actually a simple function.
|
It's equal to
(n - 1)!, any way for expressing the ! operator?
__________________