You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select a weighted random sample of size 1 from a with probabilities
proportional to the weights given in w. If a is not present, select a random weight from w.
From this, I expect wsample(w) ∈ w. However, I am getting
julia>wsample([1,10])
2
The text was updated successfully, but these errors were encountered:
cafaxo
changed the title
wsample(w) behaves not as the docs describe itwsample(w) behaves not as the documentation describes it
Jul 26, 2023
The doc says
From this, I expect
wsample(w) ∈ w
. However, I am gettingThe text was updated successfully, but these errors were encountered: