[英]How to read uniform_int_distribution's probability mass function?
uniform_int_distribution uses the following probability mass function : uniform_int_distribution使用以下概率质量函数 :
P(i|a,b) = 1/(b-a+1), a <= i <= b
How does one read the LHS of the equation,ie: P(i|a,b)
? 如何读取方程的LHS,即:
P(i|a,b)
?
This means "P (the chance) of outcome i, depending on parameters a and b, is (1/b-a+1) when i is in the range a to b, and zero outside that range". 这意味着“当i处于a到b的范围内时,结果i的P(机会)取决于参数a和b为(1 / b-a + 1),并且在该范围之外为零”。
It's uniform because all values of i between a and b are equally likely. 这是统一的,因为i在a和b之间的所有值都具有同等可能性。
This means how far I assume that P is probability of occurrence of i , in between interval a and b. 这意味着我假设P是间隔a和b之间的i出现概率。 i couldnot go the range below a or higher than b
我无法进入低于a或高于b的范围
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.