how to implement non uniform probability distribution?

前端 未结 3 1249
你的背包
你的背包 2020-12-10 09:18

I am trying to implement non-uniform probability distribution in genetic algorithm.

In the implementation of genetic program, I have an experiment which has 3 outcom

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 10:18

    In your particular case it is better to get a random value in [0; 100) using uniform distribution and then check what range it falls in: [0; 85), [85;99), [99, 100)

提交回复
热议问题