所以我试图计算CSGO皮肤上漂浮物的可能性。 浮点值是介于0和1之间的值,它们在五个部分中进行区分
工厂新(0-0.07)3%,最小磨损(0.07-0.14)24%,现场测试(0.14-0.38)33%,磨损良好(0.38-0.45)24%,战痕(0.45-1.0)16%
正如您所见,浮点值之间的分布并不均匀,而是经过加权。但是,在每个部分中,值会均匀分布,例如: https://blog.csgofloat.com/content/images/2020/07/image-6.png
然后,当您引入浮点数时,它会变得棘手,这意味着浮点数不再介于0和1之间,而是介于0.14和0.65之间
该值的计算方法如下:
现在,我想计算五个部分中具有cap的蒙皮的分布
我该怎么做? 先谢谢你
使用
numpy
库很简单:编辑
如果您想找到准确的发行版,那么也很容易,尽管我并不完全清楚您的“可伸缩”需求
相关问题 更多 >
编程相关推荐