@stdlib/stats-base-dists-laplace 0.0.7 → 0.1.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/CITATION.cff ADDED
@@ -0,0 +1,30 @@
1
+ cff-version: 1.2.0
2
+ title: stdlib
3
+ message: >-
4
+ If you use this software, please cite it using the
5
+ metadata from this file.
6
+
7
+ type: software
8
+
9
+ authors:
10
+ - name: The Stdlib Authors
11
+ url: https://github.com/stdlib-js/stdlib/graphs/contributors
12
+
13
+ repository-code: https://github.com/stdlib-js/stdlib
14
+ url: https://stdlib.io
15
+
16
+ abstract: |
17
+ Standard library for JavaScript and Node.js.
18
+
19
+ keywords:
20
+ - JavaScript
21
+ - Node.js
22
+ - TypeScript
23
+ - standard library
24
+ - scientific computing
25
+ - numerical computing
26
+ - statistical computing
27
+
28
+ license: Apache-2.0 AND BSL-1.0
29
+
30
+ date-released: 2016
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2022 The Stdlib Authors.
1
+ Copyright (c) 2016-2023 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
  # Laplace
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] -->
@@ -165,7 +176,7 @@ See [LICENSE][stdlib-license].
165
176
 
166
177
  ## Copyright
167
178
 
168
- Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
179
+ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
169
180
 
170
181
  </section>
171
182
 
@@ -178,8 +189,8 @@ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
178
189
  [npm-image]: http://img.shields.io/npm/v/@stdlib/stats-base-dists-laplace.svg
179
190
  [npm-url]: https://npmjs.org/package/@stdlib/stats-base-dists-laplace
180
191
 
181
- [test-image]: https://github.com/stdlib-js/stats-base-dists-laplace/actions/workflows/test.yml/badge.svg?branch=v0.0.7
182
- [test-url]: https://github.com/stdlib-js/stats-base-dists-laplace/actions/workflows/test.yml?query=branch:v0.0.7
192
+ [test-image]: https://github.com/stdlib-js/stats-base-dists-laplace/actions/workflows/test.yml/badge.svg?branch=v0.1.0
193
+ [test-url]: https://github.com/stdlib-js/stats-base-dists-laplace/actions/workflows/test.yml?query=branch:v0.1.0
183
194
 
184
195
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-dists-laplace/main.svg
185
196
  [coverage-url]: https://codecov.io/github/stdlib-js/stats-base-dists-laplace?branch=main
@@ -192,7 +203,7 @@ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
192
203
  -->
193
204
 
194
205
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
195
- [chat-url]: https://gitter.im/stdlib-js/stdlib/
206
+ [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
196
207
 
197
208
  [stdlib]: https://github.com/stdlib-js/stdlib
198
209
 
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import ns from '../docs/types/index';
3
+ export = ns;
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-laplace-cdf/dist'));r(e,"Laplace",require('@stdlib/stats-base-dists-laplace-ctor/dist'));r(e,"entropy",require('@stdlib/stats-base-dists-laplace-entropy/dist'));r(e,"kurtosis",require('@stdlib/stats-base-dists-laplace-kurtosis/dist'));r(e,"logcdf",require('@stdlib/stats-base-dists-laplace-logcdf/dist'));r(e,"logpdf",require('@stdlib/stats-base-dists-laplace-logpdf/dist'));r(e,"mean",require('@stdlib/stats-base-dists-laplace-mean/dist'));r(e,"median",require('@stdlib/stats-base-dists-laplace-median/dist'));r(e,"mgf",require('@stdlib/stats-base-dists-laplace-mgf/dist'));r(e,"mode",require('@stdlib/stats-base-dists-laplace-mode/dist'));r(e,"pdf",require('@stdlib/stats-base-dists-laplace-pdf/dist'));r(e,"quantile",require('@stdlib/stats-base-dists-laplace-quantile/dist'));r(e,"skewness",require('@stdlib/stats-base-dists-laplace-skewness/dist'));r(e,"stdev",require('@stdlib/stats-base-dists-laplace-stdev/dist'));r(e,"variance",require('@stdlib/stats-base-dists-laplace-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 laplace\n*/\nvar laplace = {};\n\n/**\n* @name cdf\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/cdf}\n*/\nsetReadOnly( laplace, 'cdf', require( '@stdlib/stats-base-dists-laplace-cdf' ) );\n\n/**\n* @name Laplace\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/ctor}\n*/\nsetReadOnly( laplace, 'Laplace', require( '@stdlib/stats-base-dists-laplace-ctor' ) );\n\n/**\n* @name entropy\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/entropy}\n*/\nsetReadOnly( laplace, 'entropy', require( '@stdlib/stats-base-dists-laplace-entropy' ) );\n\n/**\n* @name kurtosis\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/kurtosis}\n*/\nsetReadOnly( laplace, 'kurtosis', require( '@stdlib/stats-base-dists-laplace-kurtosis' ) );\n\n/**\n* @name logcdf\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/logcdf}\n*/\nsetReadOnly( laplace, 'logcdf', require( '@stdlib/stats-base-dists-laplace-logcdf' ) );\n\n/**\n* @name logpdf\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/logpdf}\n*/\nsetReadOnly( laplace, 'logpdf', require( '@stdlib/stats-base-dists-laplace-logpdf' ) );\n\n/**\n* @name mean\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/mean}\n*/\nsetReadOnly( laplace, 'mean', require( '@stdlib/stats-base-dists-laplace-mean' ) );\n\n/**\n* @name median\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/median}\n*/\nsetReadOnly( laplace, 'median', require( '@stdlib/stats-base-dists-laplace-median' ) );\n\n/**\n* @name mgf\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/mgf}\n*/\nsetReadOnly( laplace, 'mgf', require( '@stdlib/stats-base-dists-laplace-mgf' ) );\n\n/**\n* @name mode\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/mode}\n*/\nsetReadOnly( laplace, 'mode', require( '@stdlib/stats-base-dists-laplace-mode' ) );\n\n/**\n* @name pdf\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/pdf}\n*/\nsetReadOnly( laplace, 'pdf', require( '@stdlib/stats-base-dists-laplace-pdf' ) );\n\n/**\n* @name quantile\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/quantile}\n*/\nsetReadOnly( laplace, 'quantile', require( '@stdlib/stats-base-dists-laplace-quantile' ) );\n\n/**\n* @name skewness\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/skewness}\n*/\nsetReadOnly( laplace, 'skewness', require( '@stdlib/stats-base-dists-laplace-skewness' ) );\n\n/**\n* @name stdev\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/stdev}\n*/\nsetReadOnly( laplace, 'stdev', require( '@stdlib/stats-base-dists-laplace-stdev' ) );\n\n/**\n* @name variance\n* @memberof laplace\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/stats/base/dists/laplace/variance}\n*/\nsetReadOnly( laplace, 'variance', require( '@stdlib/stats-base-dists-laplace-variance' ) );\n\n\n// EXPORTS //\n\nmodule.exports = laplace;\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,OAAQ,QAAS,uCAAwC,CAAE,EASjFD,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", "laplace"]
7
+ }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- // TypeScript Version: 2.0
19
+ // TypeScript Version: 4.1
20
20
 
21
21
  /* tslint:disable:max-line-length */
22
22
  /* tslint:disable:max-file-line-count */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/stats-base-dists-laplace",
3
- "version": "0.0.7",
3
+ "version": "0.1.0",
4
4
  "description": "Laplace distribution.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -36,54 +36,54 @@
36
36
  "url": "https://github.com/stdlib-js/stdlib/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@stdlib/stats-base-dists-laplace-cdf": "^0.0.x",
40
- "@stdlib/stats-base-dists-laplace-ctor": "^0.0.x",
41
- "@stdlib/stats-base-dists-laplace-entropy": "^0.0.x",
42
- "@stdlib/stats-base-dists-laplace-kurtosis": "^0.0.x",
43
- "@stdlib/stats-base-dists-laplace-logcdf": "^0.0.x",
44
- "@stdlib/stats-base-dists-laplace-logpdf": "^0.0.x",
45
- "@stdlib/stats-base-dists-laplace-mean": "^0.0.x",
46
- "@stdlib/stats-base-dists-laplace-median": "^0.0.x",
47
- "@stdlib/stats-base-dists-laplace-mgf": "^0.0.x",
48
- "@stdlib/stats-base-dists-laplace-mode": "^0.0.x",
49
- "@stdlib/stats-base-dists-laplace-pdf": "^0.0.x",
50
- "@stdlib/stats-base-dists-laplace-quantile": "^0.0.x",
51
- "@stdlib/stats-base-dists-laplace-skewness": "^0.0.x",
52
- "@stdlib/stats-base-dists-laplace-stdev": "^0.0.x",
53
- "@stdlib/stats-base-dists-laplace-variance": "^0.0.x",
54
- "@stdlib/utils-define-read-only-property": "^0.0.x"
39
+ "@stdlib/stats-base-dists-laplace-cdf": "^0.0.7",
40
+ "@stdlib/stats-base-dists-laplace-ctor": "^0.0.8",
41
+ "@stdlib/stats-base-dists-laplace-entropy": "^0.1.0",
42
+ "@stdlib/stats-base-dists-laplace-kurtosis": "^0.1.0",
43
+ "@stdlib/stats-base-dists-laplace-logcdf": "^0.1.0",
44
+ "@stdlib/stats-base-dists-laplace-logpdf": "^0.1.0",
45
+ "@stdlib/stats-base-dists-laplace-mean": "^0.1.0",
46
+ "@stdlib/stats-base-dists-laplace-median": "^0.1.0",
47
+ "@stdlib/stats-base-dists-laplace-mgf": "^0.0.7",
48
+ "@stdlib/stats-base-dists-laplace-mode": "^0.1.0",
49
+ "@stdlib/stats-base-dists-laplace-pdf": "^0.1.0",
50
+ "@stdlib/stats-base-dists-laplace-quantile": "^0.1.0",
51
+ "@stdlib/stats-base-dists-laplace-skewness": "^0.1.0",
52
+ "@stdlib/stats-base-dists-laplace-stdev": "^0.1.0",
53
+ "@stdlib/stats-base-dists-laplace-variance": "^0.1.0",
54
+ "@stdlib/utils-define-read-only-property": "^0.1.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@stdlib/assert-has-own-property": "^0.0.x",
58
- "@stdlib/assert-is-function": "^0.0.x",
59
- "@stdlib/assert-is-nan": "^0.0.x",
60
- "@stdlib/assert-is-number": "^0.0.x",
61
- "@stdlib/assert-is-positive-number": "^0.0.x",
62
- "@stdlib/bench": "^0.0.x",
63
- "@stdlib/constants-float64-e": "^0.0.x",
64
- "@stdlib/constants-float64-eps": "^0.0.x",
65
- "@stdlib/constants-float64-ln-half": "^0.0.x",
66
- "@stdlib/constants-float64-ninf": "^0.0.x",
67
- "@stdlib/constants-float64-pinf": "^0.0.x",
68
- "@stdlib/constants-float64-sqrt-two": "^0.0.x",
69
- "@stdlib/math-base-assert-is-nan": "^0.0.x",
70
- "@stdlib/math-base-special-abs": "^0.0.x",
71
- "@stdlib/math-base-special-exp": "^0.0.x",
72
- "@stdlib/math-base-special-expm1": "^0.0.x",
73
- "@stdlib/math-base-special-ln": "^0.0.x",
74
- "@stdlib/math-base-special-log1p": "^0.0.x",
75
- "@stdlib/math-base-special-pow": "^0.0.x",
76
- "@stdlib/math-base-special-signum": "^0.0.x",
77
- "@stdlib/random-base-randu": "^0.0.x",
78
- "@stdlib/string-format": "^0.0.x",
79
- "@stdlib/utils-constant-function": "^0.0.x",
80
- "@stdlib/utils-define-nonenumerable-read-only-accessor": "^0.0.x",
81
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x",
82
- "@stdlib/utils-define-property": "^0.0.x",
83
- "@stdlib/utils-keys": "^0.0.x",
57
+ "@stdlib/assert-has-own-property": "^0.1.0",
58
+ "@stdlib/assert-is-function": "^0.1.0",
59
+ "@stdlib/assert-is-nan": "^0.1.0",
60
+ "@stdlib/assert-is-number": "^0.1.0",
61
+ "@stdlib/assert-is-positive-number": "^0.1.0",
62
+ "@stdlib/bench": "^0.1.0",
63
+ "@stdlib/constants-float64-e": "^0.1.0",
64
+ "@stdlib/constants-float64-eps": "^0.1.0",
65
+ "@stdlib/constants-float64-ln-half": "^0.1.0",
66
+ "@stdlib/constants-float64-ninf": "^0.1.0",
67
+ "@stdlib/constants-float64-pinf": "^0.1.0",
68
+ "@stdlib/constants-float64-sqrt-two": "^0.1.0",
69
+ "@stdlib/math-base-assert-is-nan": "^0.1.0",
70
+ "@stdlib/math-base-special-abs": "^0.1.0",
71
+ "@stdlib/math-base-special-exp": "^0.1.0",
72
+ "@stdlib/math-base-special-expm1": "^0.1.0",
73
+ "@stdlib/math-base-special-ln": "^0.1.0",
74
+ "@stdlib/math-base-special-log1p": "^0.1.0",
75
+ "@stdlib/math-base-special-pow": "^0.1.0",
76
+ "@stdlib/math-base-special-signum": "^0.1.0",
77
+ "@stdlib/random-base-randu": "^0.0.8",
78
+ "@stdlib/string-format": "^0.1.0",
79
+ "@stdlib/utils-constant-function": "^0.1.0",
80
+ "@stdlib/utils-define-nonenumerable-read-only-accessor": "^0.1.0",
81
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
82
+ "@stdlib/utils-define-property": "^0.1.0",
83
+ "@stdlib/utils-keys": "^0.1.0",
84
84
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
85
85
  "istanbul": "^0.4.1",
86
- "tap-spec": "5.x.x"
86
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=0.10.0",
@@ -118,7 +118,7 @@
118
118
  "continuous"
119
119
  ],
120
120
  "funding": {
121
- "type": "patreon",
122
- "url": "https://www.patreon.com/athan"
121
+ "type": "opencollective",
122
+ "url": "https://opencollective.com/stdlib"
123
123
  }
124
124
  }
@@ -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 laplace = require( './index' );
22
-
23
-
24
- // TESTS //
25
-
26
- // The exported value is the expected interface...
27
- {
28
- laplace; // $ExpectType Namespace
29
- }