• ### Probability distributions in PD

Hi,
Is there anything similar in PD ?...
(text below taken from MAX tutorials)

"Probability Distribution
The bang message in the left inlet of a table has a special function. Instead of sending out a stored value, the table sends out an address. The probability of a particular address being sent out is in direct proportion to its stored value, as compared to the other values in the table. If the value stored in an address is greater than in other addresses, that address is more likely to be sent out when a bang is received.
This feature of the table makes it perfect for storing a probability distribution. Each
address can be assigned a different likelihood of being sent out when a bang is received."

Thanks!

• Posts 9 | Views 4440
• Dump a table's contents into the right inlet [list-wrandom] (from list-abs) using [tabdump] and bang it.

• just what I needed,
thanx!

mms

• OMG I was trying to make an abstraction to do just this about a year ago, I was doing all sorts of research into statistical algorithms and so forth...

Thank you!

• Hey guys,

does this tabdump-object make lists that consist of x- and y-values of the arrays?

You believe that experts know, but they only believe they know and know you believe them! This you should know!

• It's from zexy and it outputs the contents of the array as a list. The arrays are one-dimensional, so you only get the "y-values" (the x-values are just indices. There's also [array get] in vanilla that does this now.

• Ok. thanks!

You believe that experts know, but they only believe they know and know you believe them! This you should know!

• Also, if I'm not mistaken, [array random] will now take care of probability distributions, which the author of this thread was originally asking about. See the [pd quantile+random] subpatch in the array helpfile.

Posts 9 | Views 4440
Internal error.

Oops! Looks like something went wrong!