[non]Uniform Distribution Draw with/without placement
Basic algorithm to draw from non-uniform distribution
- draw from non-uniform distribution without placement
var selected_withOut_Placement = new List<int>() { 1,2, 4, 8,16,32,64,128 ,256,512,1024}.Take_Non_Uniform(new List<double>() { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 },5,Placement:false);
- draw from non-uniform distribution with placement
var selected_with_Placement = new List<int>() { 1,2, 4, 8,16,32,64,128 ,256,512,1024}.Take_Non_Uniform(new List<double>() { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 },20,Placement:true);
- draw from uniform distribution without placement
var Uniform_Random_Draw = new List<int>() { 1,2, 4, 8,16,32,64,128 ,256,512,1024}.Take_Uniform(4);