@stdlib/stats-base-dists-hypergeometric 0.0.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +18 -4
- package/SECURITY.md +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +7 -0
- package/docs/types/index.d.ts +2 -3
- package/package.json +44 -43
- package/docs/types/test.ts +0 -29
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -18,6 +18,17 @@ limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
-->
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
<details>
|
|
23
|
+
<summary>
|
|
24
|
+
About stdlib...
|
|
25
|
+
</summary>
|
|
26
|
+
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
|
|
27
|
+
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
|
|
28
|
+
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
|
|
29
|
+
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
|
|
30
|
+
</details>
|
|
31
|
+
|
|
21
32
|
# Hypergeometric
|
|
22
33
|
|
|
23
34
|
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
@@ -161,7 +172,7 @@ See [LICENSE][stdlib-license].
|
|
|
161
172
|
|
|
162
173
|
## Copyright
|
|
163
174
|
|
|
164
|
-
Copyright © 2016-
|
|
175
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
165
176
|
|
|
166
177
|
</section>
|
|
167
178
|
|
|
@@ -174,8 +185,8 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
|
174
185
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/stats-base-dists-hypergeometric.svg
|
|
175
186
|
[npm-url]: https://npmjs.org/package/@stdlib/stats-base-dists-hypergeometric
|
|
176
187
|
|
|
177
|
-
[test-image]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/actions/workflows/test.yml/badge.svg?branch=v0.0
|
|
178
|
-
[test-url]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/actions/workflows/test.yml?query=branch:v0.0
|
|
188
|
+
[test-image]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
189
|
+
[test-url]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/actions/workflows/test.yml?query=branch:v0.2.0
|
|
179
190
|
|
|
180
191
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-dists-hypergeometric/main.svg
|
|
181
192
|
[coverage-url]: https://codecov.io/github/stdlib-js/stats-base-dists-hypergeometric?branch=main
|
|
@@ -188,7 +199,7 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
|
188
199
|
-->
|
|
189
200
|
|
|
190
201
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
191
|
-
[chat-url]: https://gitter.im
|
|
202
|
+
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
|
|
192
203
|
|
|
193
204
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
194
205
|
|
|
@@ -198,8 +209,11 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
|
198
209
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
199
210
|
|
|
200
211
|
[deno-url]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/tree/deno
|
|
212
|
+
[deno-readme]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/blob/deno/README.md
|
|
201
213
|
[umd-url]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/tree/umd
|
|
214
|
+
[umd-readme]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/blob/umd/README.md
|
|
202
215
|
[esm-url]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/tree/esm
|
|
216
|
+
[esm-readme]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/blob/esm/README.md
|
|
203
217
|
[branches-url]: https://github.com/stdlib-js/stats-base-dists-hypergeometric/blob/main/branches.md
|
|
204
218
|
|
|
205
219
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/stats-base-dists-hypergeometric/main/LICENSE
|
package/SECURITY.md
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var r=require('@stdlib/utils-define-read-only-property/dist'),e={};r(e,"cdf",require('@stdlib/stats-base-dists-hypergeometric-cdf/dist'));r(e,"Hypergeometric",require('@stdlib/stats-base-dists-hypergeometric-ctor/dist'));r(e,"kurtosis",require('@stdlib/stats-base-dists-hypergeometric-kurtosis/dist'));r(e,"logpmf",require('@stdlib/stats-base-dists-hypergeometric-logpmf/dist'));r(e,"mean",require('@stdlib/stats-base-dists-hypergeometric-mean/dist'));r(e,"mode",require('@stdlib/stats-base-dists-hypergeometric-mode/dist'));r(e,"pmf",require('@stdlib/stats-base-dists-hypergeometric-pmf/dist'));r(e,"quantile",require('@stdlib/stats-base-dists-hypergeometric-quantile/dist'));r(e,"skewness",require('@stdlib/stats-base-dists-hypergeometric-skewness/dist'));r(e,"stdev",require('@stdlib/stats-base-dists-hypergeometric-stdev/dist'));r(e,"variance",require('@stdlib/stats-base-dists-hypergeometric-variance/dist'));module.exports=e;
|
|
2
|
+
/** @license Apache-2.0 */
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../lib/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace hypergeometric\n*/\nvar hypergeometric = {};\n\n/**\n* @name cdf\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/cdf}\n*/\nsetReadOnly( hypergeometric, 'cdf', require( '@stdlib/stats-base-dists-hypergeometric-cdf' ) );\n\n/**\n* @name Hypergeometric\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/ctor}\n*/\nsetReadOnly( hypergeometric, 'Hypergeometric', require( '@stdlib/stats-base-dists-hypergeometric-ctor' ) );\n\n/**\n* @name kurtosis\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/kurtosis}\n*/\nsetReadOnly( hypergeometric, 'kurtosis', require( '@stdlib/stats-base-dists-hypergeometric-kurtosis' ) );\n\n/**\n* @name logpmf\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/logpmf}\n*/\nsetReadOnly( hypergeometric, 'logpmf', require( '@stdlib/stats-base-dists-hypergeometric-logpmf' ) );\n\n/**\n* @name mean\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/mean}\n*/\nsetReadOnly( hypergeometric, 'mean', require( '@stdlib/stats-base-dists-hypergeometric-mean' ) );\n\n/**\n* @name mode\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/mode}\n*/\nsetReadOnly( hypergeometric, 'mode', require( '@stdlib/stats-base-dists-hypergeometric-mode' ) );\n\n/**\n* @name pmf\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/pmf}\n*/\nsetReadOnly( hypergeometric, 'pmf', require( '@stdlib/stats-base-dists-hypergeometric-pmf' ) );\n\n/**\n* @name quantile\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/quantile}\n*/\nsetReadOnly( hypergeometric, 'quantile', require( '@stdlib/stats-base-dists-hypergeometric-quantile' ) );\n\n/**\n* @name skewness\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/skewness}\n*/\nsetReadOnly( hypergeometric, 'skewness', require( '@stdlib/stats-base-dists-hypergeometric-skewness' ) );\n\n/**\n* @name stdev\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/stdev}\n*/\nsetReadOnly( hypergeometric, 'stdev', require( '@stdlib/stats-base-dists-hypergeometric-stdev' ) );\n\n/**\n* @name variance\n* @memberof hypergeometric\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/hypergeometric/variance}\n*/\nsetReadOnly( hypergeometric, 'variance', require( '@stdlib/stats-base-dists-hypergeometric-variance' ) );\n\n\n// EXPORTS //\n\nmodule.exports = hypergeometric;\n"],
|
|
5
|
+
"mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAiB,CAAC,EAStBD,EAAaC,EAAgB,MAAO,QAAS,6CAA8C,CAAE,EAS7FD,EAAaC,EAAgB,iBAAkB,QAAS,8CAA+C,CAAE,EASzGD,EAAaC,EAAgB,WAAY,QAAS,kDAAmD,CAAE,EASvGD,EAAaC,EAAgB,SAAU,QAAS,gDAAiD,CAAE,EASnGD,EAAaC,EAAgB,OAAQ,QAAS,8CAA+C,CAAE,EAS/FD,EAAaC,EAAgB,OAAQ,QAAS,8CAA+C,CAAE,EAS/FD,EAAaC,EAAgB,MAAO,QAAS,6CAA8C,CAAE,EAS7FD,EAAaC,EAAgB,WAAY,QAAS,kDAAmD,CAAE,EASvGD,EAAaC,EAAgB,WAAY,QAAS,kDAAmD,CAAE,EASvGD,EAAaC,EAAgB,QAAS,QAAS,+CAAgD,CAAE,EASjGD,EAAaC,EAAgB,WAAY,QAAS,kDAAmD,CAAE,EAKvG,OAAO,QAAUA",
|
|
6
|
+
"names": ["setReadOnly", "hypergeometric"]
|
|
7
|
+
}
|
package/docs/types/index.d.ts
CHANGED
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
// TypeScript Version:
|
|
19
|
+
// TypeScript Version: 4.1
|
|
20
20
|
|
|
21
|
-
/*
|
|
22
|
-
/* tslint:disable:max-file-line-count */
|
|
21
|
+
/* eslint-disable max-lines */
|
|
23
22
|
|
|
24
23
|
import cdf = require( '@stdlib/stats-base-dists-hypergeometric-cdf' );
|
|
25
24
|
import Hypergeometric = require( '@stdlib/stats-base-dists-hypergeometric-ctor' );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/stats-base-dists-hypergeometric",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Hypergeometric distribution.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -36,50 +36,51 @@
|
|
|
36
36
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@stdlib/stats-base-dists-hypergeometric-cdf": "^0.0
|
|
40
|
-
"@stdlib/stats-base-dists-hypergeometric-ctor": "^0.0
|
|
41
|
-
"@stdlib/stats-base-dists-hypergeometric-kurtosis": "^0.0
|
|
42
|
-
"@stdlib/stats-base-dists-hypergeometric-logpmf": "^0.0
|
|
43
|
-
"@stdlib/stats-base-dists-hypergeometric-mean": "^0.0
|
|
44
|
-
"@stdlib/stats-base-dists-hypergeometric-mode": "^0.0
|
|
45
|
-
"@stdlib/stats-base-dists-hypergeometric-pmf": "^0.0
|
|
46
|
-
"@stdlib/stats-base-dists-hypergeometric-quantile": "^0.0
|
|
47
|
-
"@stdlib/stats-base-dists-hypergeometric-skewness": "^0.0
|
|
48
|
-
"@stdlib/stats-base-dists-hypergeometric-stdev": "^0.0
|
|
49
|
-
"@stdlib/stats-base-dists-hypergeometric-variance": "^0.0
|
|
50
|
-
"@stdlib/utils-define-read-only-property": "^0.0
|
|
39
|
+
"@stdlib/stats-base-dists-hypergeometric-cdf": "^0.2.0",
|
|
40
|
+
"@stdlib/stats-base-dists-hypergeometric-ctor": "^0.2.0",
|
|
41
|
+
"@stdlib/stats-base-dists-hypergeometric-kurtosis": "^0.2.0",
|
|
42
|
+
"@stdlib/stats-base-dists-hypergeometric-logpmf": "^0.2.0",
|
|
43
|
+
"@stdlib/stats-base-dists-hypergeometric-mean": "^0.2.0",
|
|
44
|
+
"@stdlib/stats-base-dists-hypergeometric-mode": "^0.2.0",
|
|
45
|
+
"@stdlib/stats-base-dists-hypergeometric-pmf": "^0.2.0",
|
|
46
|
+
"@stdlib/stats-base-dists-hypergeometric-quantile": "^0.2.0",
|
|
47
|
+
"@stdlib/stats-base-dists-hypergeometric-skewness": "^0.2.0",
|
|
48
|
+
"@stdlib/stats-base-dists-hypergeometric-stdev": "^0.2.0",
|
|
49
|
+
"@stdlib/stats-base-dists-hypergeometric-variance": "^0.2.0",
|
|
50
|
+
"@stdlib/utils-define-read-only-property": "^0.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@stdlib/array-float64": "^0.0
|
|
54
|
-
"@stdlib/assert-has-own-property": "^0.0
|
|
55
|
-
"@stdlib/assert-is-function": "^0.0
|
|
56
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.0
|
|
57
|
-
"@stdlib/
|
|
58
|
-
"@stdlib/constants-float64-
|
|
59
|
-
"@stdlib/constants-float64-
|
|
60
|
-
"@stdlib/
|
|
61
|
-
"@stdlib/math-base-assert-is-
|
|
62
|
-
"@stdlib/math-base-
|
|
63
|
-
"@stdlib/math-base-special-
|
|
64
|
-
"@stdlib/math-base-special-
|
|
65
|
-
"@stdlib/math-base-special-
|
|
66
|
-
"@stdlib/math-base-special-
|
|
67
|
-
"@stdlib/math-base-special-
|
|
68
|
-
"@stdlib/math-base-special-
|
|
69
|
-
"@stdlib/math-base-special-
|
|
70
|
-
"@stdlib/math-base-special-
|
|
71
|
-
"@stdlib/math-base-special-
|
|
72
|
-
"@stdlib/
|
|
73
|
-
"@stdlib/
|
|
74
|
-
"@stdlib/
|
|
75
|
-
"@stdlib/utils-
|
|
76
|
-
"@stdlib/utils-define-nonenumerable-read-only-
|
|
77
|
-
"@stdlib/utils-define-
|
|
78
|
-
"@stdlib/utils-
|
|
79
|
-
"@stdlib/utils-keys": "^0.0.x",
|
|
53
|
+
"@stdlib/array-float64": "^0.2.0",
|
|
54
|
+
"@stdlib/assert-has-own-property": "^0.2.0",
|
|
55
|
+
"@stdlib/assert-is-function": "^0.2.0",
|
|
56
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.2.0",
|
|
57
|
+
"@stdlib/constants-float64-eps": "^0.2.0",
|
|
58
|
+
"@stdlib/constants-float64-ninf": "^0.2.0",
|
|
59
|
+
"@stdlib/constants-float64-pinf": "^0.2.0",
|
|
60
|
+
"@stdlib/math-base-assert-is-nan": "^0.2.0",
|
|
61
|
+
"@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.0",
|
|
62
|
+
"@stdlib/math-base-special-abs": "^0.2.0",
|
|
63
|
+
"@stdlib/math-base-special-ceil": "^0.2.0",
|
|
64
|
+
"@stdlib/math-base-special-exp": "^0.2.0",
|
|
65
|
+
"@stdlib/math-base-special-factorialln": "^0.2.0",
|
|
66
|
+
"@stdlib/math-base-special-floor": "^0.2.0",
|
|
67
|
+
"@stdlib/math-base-special-max": "^0.2.0",
|
|
68
|
+
"@stdlib/math-base-special-min": "^0.2.0",
|
|
69
|
+
"@stdlib/math-base-special-round": "^0.2.0",
|
|
70
|
+
"@stdlib/math-base-special-sqrt": "^0.2.0",
|
|
71
|
+
"@stdlib/math-base-special-trunc": "^0.2.0",
|
|
72
|
+
"@stdlib/random-base-randu": "^0.1.0",
|
|
73
|
+
"@stdlib/string-format": "^0.2.0",
|
|
74
|
+
"@stdlib/utils-constant-function": "^0.2.0",
|
|
75
|
+
"@stdlib/utils-define-nonenumerable-read-only-accessor": "^0.2.0",
|
|
76
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
|
|
77
|
+
"@stdlib/utils-define-property": "^0.2.0",
|
|
78
|
+
"@stdlib/utils-keys": "^0.2.0",
|
|
80
79
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
81
80
|
"istanbul": "^0.4.1",
|
|
82
|
-
"tap-
|
|
81
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
82
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
83
|
+
"@stdlib/bench": "^0.3.1"
|
|
83
84
|
},
|
|
84
85
|
"engines": {
|
|
85
86
|
"node": ">=0.10.0",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"discrete"
|
|
114
115
|
],
|
|
115
116
|
"funding": {
|
|
116
|
-
"type": "
|
|
117
|
-
"url": "https://
|
|
117
|
+
"type": "opencollective",
|
|
118
|
+
"url": "https://opencollective.com/stdlib"
|
|
118
119
|
}
|
|
119
120
|
}
|
package/docs/types/test.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @license Apache-2.0
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2021 The Stdlib Authors.
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/* tslint:disable:no-unused-expression */
|
|
20
|
-
|
|
21
|
-
import hypergeometric = require( './index' );
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// TESTS //
|
|
25
|
-
|
|
26
|
-
// The exported value is the expected interface...
|
|
27
|
-
{
|
|
28
|
-
hypergeometric; // $ExpectType Namespace
|
|
29
|
-
}
|