Grasshopper

algorithmic modeling for Rhino

Generate a list of numbers that follow a Poisson distribution?

Hi everyone,

Does anyone know how this can be done or or have any tips? Would it be necessary to work with the Python Editor?

Views: 1137

Replies to This Discussion

Like this?

Attachments:

Looks good! Thanks a lot!

And the trad thing (the update,that is)

Attachments:

There seems to be a problem with the file you sent. If "count" is set larger than 32, there is an error. I changed all the decimal types to double, but then a lot of zeros and +infinity appear in the results.

OK, I'll investigate and do the usual thing: the V2

Maybe this can shed some light on that matter.

PS: count and lambda are "related" somehow > see bottom-most C# for what actually mean.

Attachments:

Added value ceiling options that rather make some sense more.

Attachments:

If you check the outputs PMFlist and CDFlist on your file, at around 15 and further down, you'll see that the numbers are very wrong. Having lambda at 2.82 and getting PMF multiple times at 18.0 and CFD at 30.8.

Also, in the PMFlist, some unexpected zeros appear where they shouldn't, but I guess that's due to the limitations of the bits used by the double variable type and can't be fixed. Any help, however, will be appreciated, regarding the previous problem.

Well ...I've noticed these freaky results already and that was the reason for adding the tolerance "filter" and the ceiling/remap options.

However as you can easily testify the equations are rather simple, by the book and nothing is "odd".

Have no idea why the values go bananas (and/or "oscillate") > Plan Z > maybe ask Poisson ? (spirit rapper required > what had the great man in mind ? you tell me).

Changed a bit the step logic (but bananas reign supreme).

See for instance count value up to 17: all well. The moment that value goes beyond that "magic threshold"  > the freak show begins.

Moral: bananas

Attachments:

Solved: I'm really a certified idiot: int for a Factorial? WHAT I had in mind? (apparently nothing/nada/zero).

More soon

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service