Assume I have n points (P), and for each point I have a probability s(p) [a double number between 0 to 1]. I want to pick a non-uniform random sample T of x points from P, where for every p∈P and q∈T we have p=q with probability s(p). Need to implement it in JAVA. any ideas?
Aucun commentaire:
Enregistrer un commentaire