【文件属性】:
文件名称:erlang-cdf:Erlang分布累积分布函数(CDF)
文件大小:71KB
文件格式:ZIP
更新时间:2021-05-18 23:09:40
JavaScript
累积分布函数
分布。
随机变量的为
其中k是形状参数, lambda是速率参数。
安装
$ npm install distributions-erlang-cdf
要在浏览器中使用,请使用 。
用法
var cdf = require ( 'distributions-erlang-cdf' ) ;
cdf(x [,选项])
评估分布的。 x可以是number , array ,typed array或matrix 。
var matrix = require ( 'dstructs-matrix' ) ,
mat ,
out ,
x ,
i ;
out = cdf ( 1 ) ;
// returns ~0.632
x = [ - 1 , 0 , 1 , 2 , 3 ] ;
out = cdf ( x ) ;
// returns [ 0, 0, ~0.632,
【文件预览】:
erlang-cdf-master
----.jshintrc(1KB)
----.gitignore(711B)
----package.json(2KB)
----Makefile(2KB)
----.travis.yml(356B)
----LICENSE(1KB)
----examples()
--------index.js(1KB)
----.jshintignore(118B)
----README.md(9KB)
----lib()
--------matrix.js(860B)
--------index.js(4KB)
--------partial.js(581B)
--------deepset.js(1KB)
--------array.js(1000B)
--------validate.js(3KB)
--------number.js(577B)
--------accessor.js(1KB)
--------typedarray.js(1KB)
----TODO.md(12B)
----.npmignore(498B)
----.gitattributes(12B)
----docs()
--------img()
----test()
--------test.number.js(1KB)
--------test.accessor.js(2KB)
--------test.matrix.js(2KB)
--------test.js(10KB)
--------test.typedarray.js(1KB)
--------test.array.js(2KB)
--------fixtures()
--------test.partial.js(2KB)
--------test.validate.js(4KB)
--------test.deepset.js(2KB)
----.editorconfig(169B)