@stdlib/stats-base-dists-uniform 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 +40 -39
- 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
|
# Continuous Uniform
|
|
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] -->
|
|
@@ -164,7 +175,7 @@ See [LICENSE][stdlib-license].
|
|
|
164
175
|
|
|
165
176
|
## Copyright
|
|
166
177
|
|
|
167
|
-
Copyright © 2016-
|
|
178
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
168
179
|
|
|
169
180
|
</section>
|
|
170
181
|
|
|
@@ -177,8 +188,8 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
|
177
188
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/stats-base-dists-uniform.svg
|
|
178
189
|
[npm-url]: https://npmjs.org/package/@stdlib/stats-base-dists-uniform
|
|
179
190
|
|
|
180
|
-
[test-image]: https://github.com/stdlib-js/stats-base-dists-uniform/actions/workflows/test.yml/badge.svg?branch=v0.0
|
|
181
|
-
[test-url]: https://github.com/stdlib-js/stats-base-dists-uniform/actions/workflows/test.yml?query=branch:v0.0
|
|
191
|
+
[test-image]: https://github.com/stdlib-js/stats-base-dists-uniform/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
192
|
+
[test-url]: https://github.com/stdlib-js/stats-base-dists-uniform/actions/workflows/test.yml?query=branch:v0.2.0
|
|
182
193
|
|
|
183
194
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-dists-uniform/main.svg
|
|
184
195
|
[coverage-url]: https://codecov.io/github/stdlib-js/stats-base-dists-uniform?branch=main
|
|
@@ -191,7 +202,7 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
|
191
202
|
-->
|
|
192
203
|
|
|
193
204
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
194
|
-
[chat-url]: https://gitter.im
|
|
205
|
+
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
|
|
195
206
|
|
|
196
207
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
197
208
|
|
|
@@ -201,8 +212,11 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
|
201
212
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
202
213
|
|
|
203
214
|
[deno-url]: https://github.com/stdlib-js/stats-base-dists-uniform/tree/deno
|
|
215
|
+
[deno-readme]: https://github.com/stdlib-js/stats-base-dists-uniform/blob/deno/README.md
|
|
204
216
|
[umd-url]: https://github.com/stdlib-js/stats-base-dists-uniform/tree/umd
|
|
217
|
+
[umd-readme]: https://github.com/stdlib-js/stats-base-dists-uniform/blob/umd/README.md
|
|
205
218
|
[esm-url]: https://github.com/stdlib-js/stats-base-dists-uniform/tree/esm
|
|
219
|
+
[esm-readme]: https://github.com/stdlib-js/stats-base-dists-uniform/blob/esm/README.md
|
|
206
220
|
[branches-url]: https://github.com/stdlib-js/stats-base-dists-uniform/blob/main/branches.md
|
|
207
221
|
|
|
208
222
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/stats-base-dists-uniform/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-uniform-cdf/dist'));r(e,"Uniform",require('@stdlib/stats-base-dists-uniform-ctor/dist'));r(e,"entropy",require('@stdlib/stats-base-dists-uniform-entropy/dist'));r(e,"kurtosis",require('@stdlib/stats-base-dists-uniform-kurtosis/dist'));r(e,"logcdf",require('@stdlib/stats-base-dists-uniform-logcdf/dist'));r(e,"logpdf",require('@stdlib/stats-base-dists-uniform-logpdf/dist'));r(e,"mean",require('@stdlib/stats-base-dists-uniform-mean/dist'));r(e,"median",require('@stdlib/stats-base-dists-uniform-median/dist'));r(e,"mgf",require('@stdlib/stats-base-dists-uniform-mgf/dist'));r(e,"pdf",require('@stdlib/stats-base-dists-uniform-pdf/dist'));r(e,"quantile",require('@stdlib/stats-base-dists-uniform-quantile/dist'));r(e,"skewness",require('@stdlib/stats-base-dists-uniform-skewness/dist'));r(e,"stdev",require('@stdlib/stats-base-dists-uniform-stdev/dist'));r(e,"variance",require('@stdlib/stats-base-dists-uniform-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 uniform\n*/\nvar uniform = {};\n\n/**\n* @name cdf\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/cdf}\n*/\nsetReadOnly( uniform, 'cdf', require( '@stdlib/stats-base-dists-uniform-cdf' ) );\n\n/**\n* @name Uniform\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/ctor}\n*/\nsetReadOnly( uniform, 'Uniform', require( '@stdlib/stats-base-dists-uniform-ctor' ) );\n\n/**\n* @name entropy\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/entropy}\n*/\nsetReadOnly( uniform, 'entropy', require( '@stdlib/stats-base-dists-uniform-entropy' ) );\n\n/**\n* @name kurtosis\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/kurtosis}\n*/\nsetReadOnly( uniform, 'kurtosis', require( '@stdlib/stats-base-dists-uniform-kurtosis' ) );\n\n/**\n* @name logcdf\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/logcdf}\n*/\nsetReadOnly( uniform, 'logcdf', require( '@stdlib/stats-base-dists-uniform-logcdf' ) );\n\n/**\n* @name logpdf\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/logpdf}\n*/\nsetReadOnly( uniform, 'logpdf', require( '@stdlib/stats-base-dists-uniform-logpdf' ) );\n\n/**\n* @name mean\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/mean}\n*/\nsetReadOnly( uniform, 'mean', require( '@stdlib/stats-base-dists-uniform-mean' ) );\n\n/**\n* @name median\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/median}\n*/\nsetReadOnly( uniform, 'median', require( '@stdlib/stats-base-dists-uniform-median' ) );\n\n/**\n* @name mgf\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/mgf}\n*/\nsetReadOnly( uniform, 'mgf', require( '@stdlib/stats-base-dists-uniform-mgf' ) );\n\n/**\n* @name pdf\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/pdf}\n*/\nsetReadOnly( uniform, 'pdf', require( '@stdlib/stats-base-dists-uniform-pdf' ) );\n\n/**\n* @name quantile\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/quantile}\n*/\nsetReadOnly( uniform, 'quantile', require( '@stdlib/stats-base-dists-uniform-quantile' ) );\n\n/**\n* @name skewness\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/skewness}\n*/\nsetReadOnly( uniform, 'skewness', require( '@stdlib/stats-base-dists-uniform-skewness' ) );\n\n/**\n* @name stdev\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/stdev}\n*/\nsetReadOnly( uniform, 'stdev', require( '@stdlib/stats-base-dists-uniform-stdev' ) );\n\n/**\n* @name variance\n* @memberof uniform\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/uniform/variance}\n*/\nsetReadOnly( uniform, 'variance', require( '@stdlib/stats-base-dists-uniform-variance' ) );\n\n\n// EXPORTS //\n\nmodule.exports = uniform;\n"],
|
|
5
|
+
"mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAU,CAAC,EASfD,EAAaC,EAAS,MAAO,QAAS,sCAAuC,CAAE,EAS/ED,EAAaC,EAAS,UAAW,QAAS,uCAAwC,CAAE,EASpFD,EAAaC,EAAS,UAAW,QAAS,0CAA2C,CAAE,EASvFD,EAAaC,EAAS,WAAY,QAAS,2CAA4C,CAAE,EASzFD,EAAaC,EAAS,SAAU,QAAS,yCAA0C,CAAE,EASrFD,EAAaC,EAAS,SAAU,QAAS,yCAA0C,CAAE,EASrFD,EAAaC,EAAS,OAAQ,QAAS,uCAAwC,CAAE,EASjFD,EAAaC,EAAS,SAAU,QAAS,yCAA0C,CAAE,EASrFD,EAAaC,EAAS,MAAO,QAAS,sCAAuC,CAAE,EAS/ED,EAAaC,EAAS,MAAO,QAAS,sCAAuC,CAAE,EAS/ED,EAAaC,EAAS,WAAY,QAAS,2CAA4C,CAAE,EASzFD,EAAaC,EAAS,WAAY,QAAS,2CAA4C,CAAE,EASzFD,EAAaC,EAAS,QAAS,QAAS,wCAAyC,CAAE,EASnFD,EAAaC,EAAS,WAAY,QAAS,2CAA4C,CAAE,EAKzF,OAAO,QAAUA",
|
|
6
|
+
"names": ["setReadOnly", "uniform"]
|
|
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-uniform-cdf' );
|
|
25
24
|
import Uniform = require( '@stdlib/stats-base-dists-uniform-ctor' );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/stats-base-dists-uniform",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Uniform distribution.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -36,46 +36,47 @@
|
|
|
36
36
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@stdlib/stats-base-dists-uniform-cdf": "^0.0
|
|
40
|
-
"@stdlib/stats-base-dists-uniform-ctor": "^0.0
|
|
41
|
-
"@stdlib/stats-base-dists-uniform-entropy": "^0.0
|
|
42
|
-
"@stdlib/stats-base-dists-uniform-kurtosis": "^0.0
|
|
43
|
-
"@stdlib/stats-base-dists-uniform-logcdf": "^0.0
|
|
44
|
-
"@stdlib/stats-base-dists-uniform-logpdf": "^0.0
|
|
45
|
-
"@stdlib/stats-base-dists-uniform-mean": "^0.0
|
|
46
|
-
"@stdlib/stats-base-dists-uniform-median": "^0.0
|
|
47
|
-
"@stdlib/stats-base-dists-uniform-mgf": "^0.0
|
|
48
|
-
"@stdlib/stats-base-dists-uniform-pdf": "^0.0
|
|
49
|
-
"@stdlib/stats-base-dists-uniform-quantile": "^0.0
|
|
50
|
-
"@stdlib/stats-base-dists-uniform-skewness": "^0.0
|
|
51
|
-
"@stdlib/stats-base-dists-uniform-stdev": "^0.0
|
|
52
|
-
"@stdlib/stats-base-dists-uniform-variance": "^0.0
|
|
53
|
-
"@stdlib/utils-define-read-only-property": "^0.0
|
|
39
|
+
"@stdlib/stats-base-dists-uniform-cdf": "^0.2.0",
|
|
40
|
+
"@stdlib/stats-base-dists-uniform-ctor": "^0.2.0",
|
|
41
|
+
"@stdlib/stats-base-dists-uniform-entropy": "^0.2.0",
|
|
42
|
+
"@stdlib/stats-base-dists-uniform-kurtosis": "^0.2.0",
|
|
43
|
+
"@stdlib/stats-base-dists-uniform-logcdf": "^0.2.0",
|
|
44
|
+
"@stdlib/stats-base-dists-uniform-logpdf": "^0.2.0",
|
|
45
|
+
"@stdlib/stats-base-dists-uniform-mean": "^0.2.0",
|
|
46
|
+
"@stdlib/stats-base-dists-uniform-median": "^0.2.0",
|
|
47
|
+
"@stdlib/stats-base-dists-uniform-mgf": "^0.2.0",
|
|
48
|
+
"@stdlib/stats-base-dists-uniform-pdf": "^0.2.0",
|
|
49
|
+
"@stdlib/stats-base-dists-uniform-quantile": "^0.2.0",
|
|
50
|
+
"@stdlib/stats-base-dists-uniform-skewness": "^0.2.0",
|
|
51
|
+
"@stdlib/stats-base-dists-uniform-stdev": "^0.2.0",
|
|
52
|
+
"@stdlib/stats-base-dists-uniform-variance": "^0.2.0",
|
|
53
|
+
"@stdlib/utils-define-read-only-property": "^0.2.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@stdlib/assert-has-own-property": "^0.
|
|
57
|
-
"@stdlib/assert-is-function": "^0.
|
|
58
|
-
"@stdlib/assert-is-number": "^0.
|
|
59
|
-
"@stdlib/
|
|
60
|
-
"@stdlib/constants-float64-
|
|
61
|
-
"@stdlib/constants-float64-
|
|
62
|
-
"@stdlib/
|
|
63
|
-
"@stdlib/math-base-
|
|
64
|
-
"@stdlib/math-base-special-
|
|
65
|
-
"@stdlib/math-base-special-
|
|
66
|
-
"@stdlib/math-base-special-
|
|
67
|
-
"@stdlib/math-base-special-
|
|
68
|
-
"@stdlib/
|
|
69
|
-
"@stdlib/
|
|
70
|
-
"@stdlib/
|
|
71
|
-
"@stdlib/utils-
|
|
72
|
-
"@stdlib/utils-define-nonenumerable-read-only-
|
|
73
|
-
"@stdlib/utils-define-
|
|
74
|
-
"@stdlib/utils-
|
|
75
|
-
"@stdlib/utils-keys": "^0.0.x",
|
|
56
|
+
"@stdlib/assert-has-own-property": "^0.1.1",
|
|
57
|
+
"@stdlib/assert-is-function": "^0.1.1",
|
|
58
|
+
"@stdlib/assert-is-number": "^0.1.1",
|
|
59
|
+
"@stdlib/constants-float64-eps": "^0.1.1",
|
|
60
|
+
"@stdlib/constants-float64-ninf": "^0.1.1",
|
|
61
|
+
"@stdlib/constants-float64-pinf": "^0.1.1",
|
|
62
|
+
"@stdlib/math-base-assert-is-nan": "^0.1.1",
|
|
63
|
+
"@stdlib/math-base-special-abs": "^0.1.1",
|
|
64
|
+
"@stdlib/math-base-special-exp": "^0.1.0",
|
|
65
|
+
"@stdlib/math-base-special-ln": "^0.1.1",
|
|
66
|
+
"@stdlib/math-base-special-pow": "^0.1.0",
|
|
67
|
+
"@stdlib/math-base-special-sqrt": "^0.1.1",
|
|
68
|
+
"@stdlib/random-base-randu": "^0.1.0",
|
|
69
|
+
"@stdlib/string-format": "^0.2.0",
|
|
70
|
+
"@stdlib/utils-constant-function": "^0.2.0",
|
|
71
|
+
"@stdlib/utils-define-nonenumerable-read-only-accessor": "^0.2.0",
|
|
72
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
|
|
73
|
+
"@stdlib/utils-define-property": "^0.1.1",
|
|
74
|
+
"@stdlib/utils-keys": "^0.1.0",
|
|
76
75
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
77
76
|
"istanbul": "^0.4.1",
|
|
78
|
-
"tap-
|
|
77
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
78
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
79
|
+
"@stdlib/bench": "^0.3.1"
|
|
79
80
|
},
|
|
80
81
|
"engines": {
|
|
81
82
|
"node": ">=0.10.0",
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
"continuous"
|
|
110
111
|
],
|
|
111
112
|
"funding": {
|
|
112
|
-
"type": "
|
|
113
|
-
"url": "https://
|
|
113
|
+
"type": "opencollective",
|
|
114
|
+
"url": "https://opencollective.com/stdlib"
|
|
114
115
|
}
|
|
115
116
|
}
|
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 uniform = require( './index' );
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// TESTS //
|
|
25
|
-
|
|
26
|
-
// The exported value is the expected interface...
|
|
27
|
-
{
|
|
28
|
-
uniform; // $ExpectType Namespace
|
|
29
|
-
}
|