1个不稳定版本
0.1.0 | 2021年11月24日 |
---|
#2182 在 算法
5KB
53 行
rust-selfsimilar
离散随机数的快速生成器。
自相似分布(80-20规则)在以下文献中描述:
Jim Gray, Prakash Sundaresan, Susanne Englert, Ken Baclawski, and Peter J. Weinberger.1994. Quickly generating billion-record synthetic databases. SIGMOD Rec. 23, 2 (June 1994), 243–252.
DOI:https://doi.org/10.1145/191843.191886
1...N之间的整数。前h•N个整数获得1-h的分布。
例如
if N = 25 and h= .10,
then 80% of the weight goes to the first 5 integers.
and 64% of the weight goes to the first integer.
lib.rs
:
离散随机数生成器的快速生成器。自相似分布(80-20规则)在Jim Gray,Prakash Sundaresan,Susanne Englert,Ken Baclawski和Peter J. Weinberger。1994年描述。快速生成数十亿条记录的合成数据库。SIGMOD Rec. 23, 2(1994年6月),243–252。DOI:https://doi.org/10.1145/191843.191886
1...N之间的整数。前h•N个整数获得1-h的分布。
例如:如果N = 25且h= .10,则80%的权重分配给前5个整数,64%的权重分配给第一个整数。
依赖项
~305KB