@stdlib/stats-base-dists-f-skewness 0.0.8 → 0.1.1

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
  # Skewness
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] -->
@@ -197,7 +208,7 @@ See [LICENSE][stdlib-license].
197
208
 
198
209
  ## Copyright
199
210
 
200
- Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
211
+ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
201
212
 
202
213
  </section>
203
214
 
@@ -210,8 +221,8 @@ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
210
221
  [npm-image]: http://img.shields.io/npm/v/@stdlib/stats-base-dists-f-skewness.svg
211
222
  [npm-url]: https://npmjs.org/package/@stdlib/stats-base-dists-f-skewness
212
223
 
213
- [test-image]: https://github.com/stdlib-js/stats-base-dists-f-skewness/actions/workflows/test.yml/badge.svg?branch=v0.0.8
214
- [test-url]: https://github.com/stdlib-js/stats-base-dists-f-skewness/actions/workflows/test.yml?query=branch:v0.0.8
224
+ [test-image]: https://github.com/stdlib-js/stats-base-dists-f-skewness/actions/workflows/test.yml/badge.svg?branch=v0.1.1
225
+ [test-url]: https://github.com/stdlib-js/stats-base-dists-f-skewness/actions/workflows/test.yml?query=branch:v0.1.1
215
226
 
216
227
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-dists-f-skewness/main.svg
217
228
  [coverage-url]: https://codecov.io/github/stdlib-js/stats-base-dists-f-skewness?branch=main
@@ -224,7 +235,7 @@ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
224
235
  -->
225
236
 
226
237
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
227
- [chat-url]: https://gitter.im/stdlib-js/stdlib/
238
+ [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
228
239
 
229
240
  [stdlib]: https://github.com/stdlib-js/stdlib
230
241
 
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import skewness from '../docs/types/index';
3
+ export = skewness;
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";var n=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var i=n(function(q,u){
2
+ var s=require('@stdlib/math-base-special-sqrt/dist');function a(e,r){var t;return e<=0||r<=6?NaN:(t=(2*e+r-2)*s(8*(r-4)),t/=(r-6)*s(e*(e+r-2)),t)}u.exports=a
3
+ });var o=i();module.exports=o;
4
+ /** @license Apache-2.0 */
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/main.js", "../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// MODULES //\n\nvar sqrt = require( '@stdlib/math-base-special-sqrt' );\n\n\n// MAIN //\n\n/**\n* Returns the skewness of an F distribution.\n*\n* @param {PositiveNumber} d1 - numerator degrees of freedom\n* @param {PositiveNumber} d2 - denominator degrees of freedom\n* @returns {PositiveNumber} skewness\n*\n* @example\n* var v = skewness( 3.0, 7.0 );\n* // returns 11.0\n*\n* @example\n* var v = skewness( 4.0, 12.0 );\n* // returns ~3.207\n*\n* @example\n* var v = skewness( 8.0, 7.0 );\n* // returns ~10.088\n*\n* @example\n* var v = skewness( 1.0, 4.0 );\n* // returns NaN\n*\n* @example\n* var v = skewness( 1.0, -0.1 );\n* // returns NaN\n*\n* @example\n* var v = skewness( -0.1, 1.0 );\n* // returns NaN\n*\n* @example\n* var v = skewness( 2.0, NaN );\n* // returns NaN\n*\n* @example\n* var v = skewness( NaN, 2.0 );\n* // returns NaN\n*/\nfunction skewness( d1, d2 ) {\n\tvar out;\n\tif ( d1 <= 0.0 || d2 <= 6.0 ) {\n\t\treturn NaN;\n\t}\n\tout = ( ( 2.0*d1 ) + d2 - 2.0 ) * sqrt( 8.0 * ( d2-4.0 ) );\n\tout /= ( d2-6.0 ) * sqrt( d1 * ( d1+d2-2.0 ) );\n\treturn out;\n}\n\n\n// EXPORTS //\n\nmodule.exports = skewness;\n", "/**\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* F distribution skewness.\n*\n* @module @stdlib/stats-base-dists-f-skewness\n*\n* @example\n* var skewness = require( '@stdlib/stats-base-dists-f-skewness' );\n*\n* var v = skewness( 3.0, 7.0 );\n* // returns 11.0\n*\n* v = skewness( 4.0, 12.0 );\n* // returns ~3.207\n*\n* v = skewness( 8.0, 7.0 );\n* // returns ~10.088\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAO,QAAS,gCAAiC,EA4CrD,SAASC,EAAUC,EAAIC,EAAK,CAC3B,IAAIC,EACJ,OAAKF,GAAM,GAAOC,GAAM,EAChB,KAERC,GAAU,EAAIF,EAAOC,EAAK,GAAQH,EAAM,GAAQG,EAAG,EAAM,EACzDC,IAASD,EAAG,GAAQH,EAAME,GAAOA,EAAGC,EAAG,EAAM,EACtCC,EACR,CAKAL,EAAO,QAAUE,ICvCjB,IAAII,EAAO,IAKX,OAAO,QAAUA",
6
+ "names": ["require_main", "__commonJSMin", "exports", "module", "sqrt", "skewness", "d1", "d2", "out", "main"]
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
  /**
22
22
  * Returns the skewness of an F distribution.
package/lib/index.js CHANGED
@@ -38,9 +38,9 @@
38
38
 
39
39
  // MODULES //
40
40
 
41
- var skewness = require( './skewness.js' );
41
+ var main = require( './main.js' );
42
42
 
43
43
 
44
44
  // EXPORTS //
45
45
 
46
- module.exports = skewness;
46
+ module.exports = main;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/stats-base-dists-f-skewness",
3
- "version": "0.0.8",
3
+ "version": "0.1.1",
4
4
  "description": "F distribution skewness.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,19 +37,19 @@
37
37
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@stdlib/math-base-special-sqrt": "^0.0.x"
40
+ "@stdlib/math-base-special-sqrt": "^0.1.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@stdlib/bench": "^0.0.x",
44
- "@stdlib/constants-float64-eps": "^0.0.x",
45
- "@stdlib/constants-float64-ninf": "^0.0.x",
46
- "@stdlib/constants-float64-pinf": "^0.0.x",
47
- "@stdlib/math-base-assert-is-nan": "^0.0.x",
48
- "@stdlib/math-base-special-abs": "^0.0.x",
49
- "@stdlib/random-base-randu": "^0.0.x",
43
+ "@stdlib/bench": "^0.1.0",
44
+ "@stdlib/constants-float64-eps": "^0.1.1",
45
+ "@stdlib/constants-float64-ninf": "^0.1.1",
46
+ "@stdlib/constants-float64-pinf": "^0.1.1",
47
+ "@stdlib/math-base-assert-is-nan": "^0.1.1",
48
+ "@stdlib/math-base-special-abs": "^0.1.0",
49
+ "@stdlib/random-base-randu": "^0.1.0",
50
50
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
51
51
  "istanbul": "^0.4.1",
52
- "tap-spec": "5.x.x"
52
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=0.10.0",
@@ -84,7 +84,7 @@
84
84
  "univariate"
85
85
  ],
86
86
  "funding": {
87
- "type": "patreon",
88
- "url": "https://www.patreon.com/athan"
87
+ "type": "opencollective",
88
+ "url": "https://opencollective.com/stdlib"
89
89
  }
90
90
  }
package/docs/repl.txt DELETED
@@ -1,33 +0,0 @@
1
-
2
- {{alias}}( d1, d2 )
3
- Returns the skewness of an F distribution.
4
-
5
- If `d1 <= 0` or `d2 <= 6`, the function returns `NaN`.
6
-
7
- If `d1` or `d2` is `NaN`, the function returns `NaN`.
8
-
9
- Parameters
10
- ----------
11
- d1: number
12
- Numerator degrees of freedom.
13
-
14
- d2: number
15
- Denominator degrees of freedom.
16
-
17
- Returns
18
- -------
19
- out: number
20
- Skewness.
21
-
22
- Examples
23
- --------
24
- > var v = {{alias}}( 3.0, 7.0 )
25
- 11.0
26
- > v = {{alias}}( 4.0, 12.0 )
27
- ~3.207
28
- > v = {{alias}}( 8.0, 7.0 )
29
- ~10.088
30
-
31
- See Also
32
- --------
33
-
@@ -1,56 +0,0 @@
1
- /*
2
- * @license Apache-2.0
3
- *
4
- * Copyright (c) 2019 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
- import skewness = require( './index' );
20
-
21
-
22
- // TESTS //
23
-
24
- // The function returns a number...
25
- {
26
- skewness( 8, 2 ); // $ExpectType number
27
- }
28
-
29
- // The function does not compile if provided values other than two numbers...
30
- {
31
- skewness( true, 3 ); // $ExpectError
32
- skewness( false, 2 ); // $ExpectError
33
- skewness( '5', 1 ); // $ExpectError
34
- skewness( [], 1 ); // $ExpectError
35
- skewness( {}, 2 ); // $ExpectError
36
- skewness( ( x: number ): number => x, 2 ); // $ExpectError
37
-
38
- skewness( 9, true ); // $ExpectError
39
- skewness( 9, false ); // $ExpectError
40
- skewness( 5, '5' ); // $ExpectError
41
- skewness( 8, [] ); // $ExpectError
42
- skewness( 9, {} ); // $ExpectError
43
- skewness( 8, ( x: number ): number => x ); // $ExpectError
44
-
45
- skewness( [], true ); // $ExpectError
46
- skewness( {}, false ); // $ExpectError
47
- skewness( false, '5' ); // $ExpectError
48
- skewness( {}, [] ); // $ExpectError
49
- skewness( '5', ( x: number ): number => x ); // $ExpectError
50
- }
51
-
52
- // The function does not compile if provided insufficient arguments...
53
- {
54
- skewness(); // $ExpectError
55
- skewness( 3 ); // $ExpectError
56
- }
File without changes