hypergeometric-random:生成超几何分布的随机变量

时间:2021-04-30 14:19:26
【文件属性】:
文件名称:hypergeometric-random:生成超几何分布的随机变量
文件大小:18KB
文件格式:ZIP
更新时间:2021-04-30 14:19:26
JavaScript 超几何随机变量 创建一个或数组,其中填充了来自的。 想象一个场景,一个holding抱着一个黑色和白色的球。 令m为the中白球的数量, n为黑球的数量。 我们从the中抽出k球。 将随机变量X定义为总共绘制的白球的数量,据说X遵循参数m , n和k的。 安装 $ npm install distributions-hypergeometric-random 要在浏览器中使用,请使用 。 用法 var random = require ( 'distributions-hypergeometric-random' ) ; random([dims] [,opts]) 创建一个或填充了来自的图形。 dims参数可以是指定length的正integer也可以是指定尺寸的正integers array 。 如果未提供dims参数,则该函数从超几何分布返回一个随机抽奖。 var out
【文件预览】:
hypergeometric-random-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------validate.js(2KB)
--------partial.js(2KB)
--------recurse.js(725B)
--------typedarray.js(1KB)
--------arrayarray.js(768B)
--------matrix.js(873B)
--------index.js(3KB)
--------alias.js(1KB)
--------array.js(902B)
--------number.js(1KB)
----.npmignore(498B)
----examples()
--------index.js(674B)
----TODO.md(107B)
----.travis.yml(154B)
----LICENSE(1KB)
----test()
--------test.validate.js(3KB)
----README.md(7KB)
----Makefile(2KB)
----.editorconfig(169B)
----.gitignore(1KB)
----package.json(2KB)

网友评论