Message Boards Message Boards

0
|
3214 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to put this in mathmetica language

Posted 10 years ago

A part of sum of generalized gamma distribution

? is Gamma function, ki is natural number??k1+...+kn=j means arbitrary combination of ki add up and equal to j. How to program this in mathmetica language? Thank you!

POSTED BY: Axes Lee
2 Replies

It is not clear to me what the relation is between n and j, and whether k1,k2 etc can be zero. However you can get started by looking at how this is built:

g[j_, d_, n_] := 
 Plus @@ Table[
   Times @@ Map[Gamma[d + 2 #]/(#! Gamma[d/2]) &, k], {k, 
    IntegerPartitions[j, {n}]}]

Look up the key ingredient, which is IntegerPartitions

POSTED BY: Gianluca Gorni
Posted 10 years ago

Thank you very much for your answer, Let me think about it based on your solution. And k1, k2...kn can be zero, there is no relation between n and j, but n can be set to 3 if needed.

POSTED BY: Axes Lee
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract