Algorithm for sampling without replacement?

前端 未结 6 1636
情歌与酒
情歌与酒 2020-12-02 13:56

I am trying to test the likelihood that a particular clustering of data has occurred by chance. A robust way to do this is Monte Carlo simulation, in which the associations

6条回答
  •  孤城傲影
    2020-12-02 14:22

    See my answer to this question Unique (non-repeating) random numbers in O(1)?. The same logic should accomplish what you are looking to do.

提交回复
热议问题