Releases: k8gb-io/go-weight-shuffling
Releases · k8gb-io/go-weight-shuffling
v0.4.0 ⭐ Full portions support
v0.3.0 🚀 - stable
Merge pull request #3 from k8gb-io/fix-50-50-0 Fix , distribution 50-50-0 is not shuffling
v0.2.0 ⭐
PickVector settings argument
The Settings argument defines how the PickVector function will return indexes. Imagine you have
a PDF for three different parts and you set one of them to 0 (just turn it off, because the
probability of this index will be 0). The solution is not universal, each use-case requires
different behavior. Currently we define two versions of the behavior.
KeepIndexesForZeroPDF
keeps indexes for zero pdf elements; e.g: forpdf=[0,50,50,0,0,0]
returns[1,2,0,3,4,5]
or[2,1,0,3,4,5]
IgnoreIndexesForZeroPDF
filter indexes for zero pdf elements; e.g: forpdf=[0,50,50,0,0,0]
returns[1,2]
or[2,1]