Replies: 1 comment
-
Try this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Very simple idea implemented in most languages, but apparently not in C# or MathNet yet.
I have a set
{A, B, C}
and I want to pick an element from it with probabilities{0.1, 0.75, 0.15}
. Python uses and argument torandom.choice(x, p=[0.1, 0.75, 0.15])
and that works nicely.Beta Was this translation helpful? Give feedback.
All reactions