diff --git a/.editorconfig b/.editorconfig index 0fd4d6c..13e9c39 100644 --- a/.editorconfig +++ b/.editorconfig @@ -179,3 +179,8 @@ indent_size = 2 [*.gypi] indent_style = space indent_size = 2 + +# Set properties for citation files: +[*.{cff,cff.txt}] +indent_style = space +indent_size = 2 diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 0da394d..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-07-01T05:45:05.301Z diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index 3e8e2db..91f2b93 100644 --- a/.github/workflows/productionize.yml +++ b/.github/workflows/productionize.yml @@ -82,21 +82,6 @@ jobs: id: transform-error-messages uses: stdlib-js/transform-errors-action@main - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - name: 'Update dependencies in package.json' run: | @@ -349,7 +334,7 @@ jobs: # Send status to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} @@ -520,7 +505,7 @@ jobs: # Send status to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} @@ -697,7 +682,7 @@ jobs: # Send status to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 26be02d..474004b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -209,7 +209,7 @@ jobs: # Send status to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4709cea..4472e2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,7 +89,7 @@ jobs: # Send status to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/.github/workflows/test_bundles.yml b/.github/workflows/test_bundles.yml index e9df6a0..172cb2d 100644 --- a/.github/workflows/test_bundles.yml +++ b/.github/workflows/test_bundles.yml @@ -88,7 +88,7 @@ jobs: # Send notification to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} @@ -130,7 +130,7 @@ jobs: # Send notification to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} @@ -172,7 +172,7 @@ jobs: # Send notification to Slack channel if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 6d8aa0b..a73c515 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -106,7 +106,7 @@ jobs: # Send Slack notification if job fails: - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 83dcbe2..e17945b 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -75,7 +75,7 @@ jobs: # Send Slack notification if job fails: - name: 'Send notification to Slack in case of failure' - uses: act10ns/slack@v1 + uses: act10ns/slack@v2 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..2ec6fff --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,30 @@ +cff-version: 1.2.0 +title: stdlib +message: >- + If you use this software, please cite it using the + metadata from this file. + +type: software + +authors: + - name: The Stdlib Authors + url: https://github.com/stdlib-js/stdlib/graphs/contributors + +repository-code: https://github.com/stdlib-js/stdlib +url: https://stdlib.io + +abstract: | + Standard library for JavaScript and Node.js. + +keywords: + - JavaScript + - Node.js + - TypeScript + - standard library + - scientific computing + - numerical computing + - statistical computing + +license: Apache-2.0 AND BSL-1.0 + +date-released: 2016 diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0c2727b..93c4bde 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3,28 +3,31 @@ # Contributors listed in alphabetical order. Ali Salesi +Amit Jimiwal Athan Reines Brendan Graetz Bruno Fenzl Christopher Dambamuromo +Dan Rose Dominik Moritz +Dorrin Sotoudeh Frank Kovacs -Harshita Kalani <95532771+HarshitaKalani@users.noreply.github.com> -James +Harshita Kalani +James Gelok Jithin KS Joey Reed -Jordan-Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> +Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Joris Labie Justin Dennison -KATTA NAGA NITHIN <88046362+nithinkatta@users.noreply.github.com> -Marcus +Marcus Fantham Matt Cochrane Milan Raj Momtchil Momtchev -Naresh Jagadeesan <37257700+Infinage@users.noreply.github.com> +Naresh Jagadeesan +Nithin Katta <88046362+nithinkatta@users.noreply.github.com> Ognjen Jevremović Philipp Burckhardt -Pranav <85227306+Pranavchiku@users.noreply.github.com> +Pranav Goswami Ricky Reusser Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Ryan Seal @@ -32,7 +35,5 @@ Seyyed Parsa Neshaei Shraddheya Shendre Stephannie Jiménez Gacha Yernar Yergaziyev -dorrin-sot <59933477+dorrin-sot@users.noreply.github.com> -drunken_devv <90555965+amitjimiwal@users.noreply.github.com> orimiles5 <97595296+orimiles5@users.noreply.github.com> -rei2hu +rei2hu diff --git a/README.md b/README.md index 2430206..4fe01aa 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,17 @@ limitations under the License. --> + +
+ + About stdlib... + +

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.

+

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.

+

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.

+

To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!

+
+ # Cumulative Distribution Function [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] @@ -193,8 +204,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/stats-base-dists-signrank-cdf.svg [npm-url]: https://npmjs.org/package/@stdlib/stats-base-dists-signrank-cdf -[test-image]: https://github.com/stdlib-js/stats-base-dists-signrank-cdf/actions/workflows/test.yml/badge.svg?branch=main -[test-url]: https://github.com/stdlib-js/stats-base-dists-signrank-cdf/actions/workflows/test.yml?query=branch:main +[test-image]: https://github.com/stdlib-js/stats-base-dists-signrank-cdf/actions/workflows/test.yml/badge.svg?branch=v0.1.0 +[test-url]: https://github.com/stdlib-js/stats-base-dists-signrank-cdf/actions/workflows/test.yml?query=branch:v0.1.0 [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-dists-signrank-cdf/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/stats-base-dists-signrank-cdf?branch=main diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..b3de6bd --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,3 @@ +/// +import cdf from '../docs/types/index'; +export = cdf; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..13e40b4 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,9 @@ +"use strict";var f=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var n=f(function(H,o){ +var d=require('@stdlib/utils-memoize/dist'),v;function g(r,e){var t;return e===0?r===0?1:0:(t=e*(e+1)/2,r<0||r>t?0:(r>t/2&&(r=t-r),v(r-e,e-1)+v(r,e-1)))}v=d(g);o.exports=v +});var c=f(function(J,q){ +var l=require('@stdlib/math-base-assert-is-positive-integer/dist'),y=require('@stdlib/math-base-assert-is-finite/dist'),h=require('@stdlib/math-base-assert-is-nan/dist'),w=require('@stdlib/math-base-special-round/dist'),z=require('@stdlib/math-base-special-exp/dist'),I=require('@stdlib/constants-float64-ln-two/dist'),L=n();function P(r,e){var t,a,i,u;if(h(r)||!l(e)||!y(e))return NaN;if(r<0)return 0;if(r=w(r),t=e*(e+1)/2,r>=t)return 1;for(a=z(-e*I),u=0,i=0;i<=r;i++)u+=L(i,e)*a;return u}q.exports=P +});var p=f(function(K,m){ +var F=require('@stdlib/math-base-assert-is-positive-integer/dist'),O=require('@stdlib/utils-constant-function/dist'),R=require('@stdlib/math-base-assert-is-finite/dist'),b=require('@stdlib/math-base-special-round/dist'),j=require('@stdlib/math-base-assert-is-nan/dist'),k=require('@stdlib/math-base-special-exp/dist'),A=require('@stdlib/constants-float64-ln-two/dist'),B=n();function C(r){var e,t;if(!F(r)||!R(r))return O(NaN);return t=k(-r*A),e=r*(r+1)/2,a;function a(i){var u,s;if(j(i))return NaN;if(i<0)return 0;if(i=b(i),i>=e)return 1;for(s=0,u=0;u<=i;u++)s+=B(u,r)*t;return s}}m.exports=C +});var D=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),N=c(),E=p();D(N,"factory",E);module.exports=N; +/** @license Apache-2.0 */ +//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 0000000..0494e01 --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../lib/weights.js", "../lib/main.js", "../lib/factory.js", "../lib/index.js"], + "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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 memoize = require( '@stdlib/utils-memoize' );\n\n\n// VARIABLES //\n\nvar memoized;\n\n\n// FUNCTIONS //\n\n/**\n* Calculates the weight for the `(x,n)` pair and memoizes the result.\n*\n* @private\n* @param {number} x - input value\n* @param {NonNegativeInteger} n - number of observations\n* @returns {number} weight\n*/\nfunction weights( x, n ) {\n\tvar mlim;\n\n\tif ( n === 0 ) {\n\t\treturn ( x === 0 ) ? 1 : 0;\n\t}\n\tmlim = n * ( n + 1 ) / 2;\n\tif ( x < 0 || x > mlim ) {\n\t\treturn 0;\n\t}\n\tif ( x > mlim / 2 ) {\n\t\tx = mlim - x;\n\t}\n\treturn memoized( x - n, n - 1 ) + memoized( x, n - 1 );\n}\n\n\n// MAIN //\n\nmemoized = memoize( weights );\n\n\n// EXPORTS //\n\nmodule.exports = memoized;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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 isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' );\nvar isfinite = require( '@stdlib/math-base-assert-is-finite' );\nvar isnan = require( '@stdlib/math-base-assert-is-nan' );\nvar round = require( '@stdlib/math-base-special-round' );\nvar exp = require( '@stdlib/math-base-special-exp' );\nvar LN2 = require( '@stdlib/constants-float64-ln-two' );\nvar weights = require( './weights.js' );\n\n\n// MAIN //\n\n/**\n* Evaluates the cumulative distribution function (CDF) of the Wilcoxon signed rank test statistic with `n` observations.\n*\n* @param {number} x - input value\n* @param {PositiveInteger} n - number of observations\n* @returns {Probability} evaluated CDF\n*\n* @example\n* var y = cdf( 7.0, 9 );\n* // returns ~0.037\n*\n* @example\n* var y = cdf( 7.0, 6 );\n* // returns ~0.281\n*\n* @example\n* var y = cdf( -1.0, 40 );\n* // returns 0.0\n*\n* @example\n* var y = cdf( NaN, 10 );\n* // returns NaN\n*\n* @example\n* var y = cdf( 0.0, NaN );\n* // returns NaN\n*\n* @example\n* var y = cdf( 2.0, -1 );\n* // returns NaN\n*\n* @example\n* var y = cdf( 2.0, 1.8 );\n* // returns NaN\n*/\nfunction cdf( x, n ) {\n\tvar mlim;\n\tvar pui;\n\tvar i;\n\tvar p;\n\tif (\n\t\tisnan( x ) ||\n\t\t!isPositiveInteger( n ) ||\n\t\t!isfinite( n )\n\t) {\n\t\treturn NaN;\n\t}\n\tif ( x < 0.0 ) {\n\t\treturn 0.0;\n\t}\n\tx = round( x );\n\tmlim = n * ( n + 1 ) / 2;\n\tif ( x >= mlim ) {\n\t\treturn 1.0;\n\t}\n\tpui = exp( -n * LN2 );\n\tp = 0;\n\tfor ( i = 0; i <= x; i++ ) {\n\t\tp += weights( i, n ) * pui;\n\t}\n\treturn p;\n}\n\n\n// EXPORTS //\n\nmodule.exports = cdf;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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 isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' );\nvar constantFunction = require( '@stdlib/utils-constant-function' );\nvar isfinite = require( '@stdlib/math-base-assert-is-finite' );\nvar round = require( '@stdlib/math-base-special-round' );\nvar isnan = require( '@stdlib/math-base-assert-is-nan' );\nvar exp = require( '@stdlib/math-base-special-exp' );\nvar LN2 = require( '@stdlib/constants-float64-ln-two' );\nvar weights = require( './weights.js' );\n\n\n// MAIN //\n\n/**\n* Returns a function for evaluating the cumulative distribution function (CDF) for the distribution of the Wilcoxon signed rank test statistic with `n` observations.\n*\n* @param {PositiveInteger} n - number of observations\n* @returns {Function} CDF\n*\n* @example\n* var cdf = factory( 8 );\n* var y = cdf( 3.9 );\n* // returns ~0.027\n*\n* y = cdf( 17.0 );\n* // returns ~0.473\n*/\nfunction factory( n ) {\n\tvar mlim;\n\tvar pui;\n\n\tif ( !isPositiveInteger( n ) || !isfinite( n ) ) {\n\t\treturn constantFunction( NaN );\n\t}\n\tpui = exp( -n * LN2 );\n\tmlim = n * ( n + 1 ) / 2;\n\treturn cdf;\n\n\t/**\n\t* Evaluates the cumulative distribution function (CDF) for the distribution of the Wilcoxon signed rank test statistic.\n\t*\n\t* @private\n\t* @param {number} x - input value\n\t* @returns {Probability} evaluated CDF\n\t*\n\t* @example\n\t* var y = cdf( 2 );\n\t* // returns \n\t*/\n\tfunction cdf( x ) {\n\t\tvar i;\n\t\tvar p;\n\t\tif ( isnan( x ) ) {\n\t\t\treturn NaN;\n\t\t}\n\t\tif ( x < 0.0 ) {\n\t\t\treturn 0.0;\n\t\t}\n\t\tx = round( x );\n\t\tif ( x >= mlim ) {\n\t\t\treturn 1.0;\n\t\t}\n\t\tp = 0;\n\t\tfor ( i = 0; i <= x; i++ ) {\n\t\t\tp += weights( i, n ) * pui;\n\t\t}\n\t\treturn p;\n\t}\n}\n\n\n// EXPORTS //\n\nmodule.exports = factory;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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* Wilcoxon signed rank test statistic cumulative distribution function (CDF).\n*\n* @module @stdlib/stats-base-dists-signrank-cdf\n*\n* @example\n* var cdf = require( '@stdlib/stats-base-dists-signrank-cdf' );\n*\n* var y = cdf( 7.0, 9 );\n* // returns ~0.037\n*\n* var myCDF = cdf.factory( 8 );\n* y = myCDF( 3.9 );\n* // returns ~0.027\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar main = require( './main.js' );\nvar factory = require( './factory.js' );\n\n\n// MAIN //\n\nsetReadOnly( main, 'factory', factory );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"], + "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAU,QAAS,uBAAwB,EAK3CC,EAaJ,SAASC,EAASC,EAAGC,EAAI,CACxB,IAAIC,EAEJ,OAAKD,IAAM,EACDD,IAAM,EAAM,EAAI,GAE1BE,EAAOD,GAAMA,EAAI,GAAM,EAClBD,EAAI,GAAKA,EAAIE,EACV,GAEHF,EAAIE,EAAO,IACfF,EAAIE,EAAOF,GAELF,EAAUE,EAAIC,EAAGA,EAAI,CAAE,EAAIH,EAAUE,EAAGC,EAAI,CAAE,GACtD,CAKAH,EAAWD,EAASE,CAAQ,EAK5BH,EAAO,QAAUE,IChEjB,IAAAK,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAoB,QAAS,8CAA+C,EAC5EC,EAAW,QAAS,oCAAqC,EACzDC,EAAQ,QAAS,iCAAkC,EACnDC,EAAQ,QAAS,iCAAkC,EACnDC,EAAM,QAAS,+BAAgC,EAC/CC,EAAM,QAAS,kCAAmC,EAClDC,EAAU,IAwCd,SAASC,EAAKC,EAAGC,EAAI,CACpB,IAAIC,EACAC,EACA,EACAC,EACJ,GACCV,EAAOM,CAAE,GACT,CAACR,EAAmBS,CAAE,GACtB,CAACR,EAAUQ,CAAE,EAEb,MAAO,KAER,GAAKD,EAAI,EACR,MAAO,GAIR,GAFAA,EAAIL,EAAOK,CAAE,EACbE,EAAOD,GAAMA,EAAI,GAAM,EAClBD,GAAKE,EACT,MAAO,GAIR,IAFAC,EAAMP,EAAK,CAACK,EAAIJ,CAAI,EACpBO,EAAI,EACE,EAAI,EAAG,GAAKJ,EAAG,IACpBI,GAAKN,EAAS,EAAGG,CAAE,EAAIE,EAExB,OAAOC,CACR,CAKAb,EAAO,QAAUQ,ICnGjB,IAAAM,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAoB,QAAS,8CAA+C,EAC5EC,EAAmB,QAAS,iCAAkC,EAC9DC,EAAW,QAAS,oCAAqC,EACzDC,EAAQ,QAAS,iCAAkC,EACnDC,EAAQ,QAAS,iCAAkC,EACnDC,EAAM,QAAS,+BAAgC,EAC/CC,EAAM,QAAS,kCAAmC,EAClDC,EAAU,IAmBd,SAASC,EAASC,EAAI,CACrB,IAAIC,EACAC,EAEJ,GAAK,CAACX,EAAmBS,CAAE,GAAK,CAACP,EAAUO,CAAE,EAC5C,OAAOR,EAAkB,GAAI,EAE9B,OAAAU,EAAMN,EAAK,CAACI,EAAIH,CAAI,EACpBI,EAAOD,GAAMA,EAAI,GAAM,EAChBG,EAaP,SAASA,EAAKC,EAAI,CACjB,IAAIC,EACAC,EACJ,GAAKX,EAAOS,CAAE,EACb,MAAO,KAER,GAAKA,EAAI,EACR,MAAO,GAGR,GADAA,EAAIV,EAAOU,CAAE,EACRA,GAAKH,EACT,MAAO,GAGR,IADAK,EAAI,EACED,EAAI,EAAGA,GAAKD,EAAGC,IACpBC,GAAKR,EAASO,EAAGL,CAAE,EAAIE,EAExB,OAAOI,CACR,CACD,CAKAhB,EAAO,QAAUS,ICxDjB,IAAIQ,EAAc,QAAS,uDAAwD,EAC/EC,EAAO,IACPC,EAAU,IAKdF,EAAaC,EAAM,UAAWC,CAAQ,EAKtC,OAAO,QAAUD", + "names": ["require_weights", "__commonJSMin", "exports", "module", "memoize", "memoized", "weights", "x", "n", "mlim", "require_main", "__commonJSMin", "exports", "module", "isPositiveInteger", "isfinite", "isnan", "round", "exp", "LN2", "weights", "cdf", "x", "n", "mlim", "pui", "p", "require_factory", "__commonJSMin", "exports", "module", "isPositiveInteger", "constantFunction", "isfinite", "round", "isnan", "exp", "LN2", "weights", "factory", "n", "mlim", "pui", "cdf", "x", "i", "p", "setReadOnly", "main", "factory"] +} diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index 0ce9db4..1c07dc5 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -16,7 +16,7 @@ * limitations under the License. */ -// TypeScript Version: 2.0 +// TypeScript Version: 4.1 /** * Evaluates the cumulative distribution function (CDF) of the Wilcoxon signed rank test statistic. diff --git a/package.json b/package.json index 0542b8f..f9d6501 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stdlib/stats-base-dists-signrank-cdf", - "version": "0.0.7", + "version": "0.1.0", "description": "Wilcoxon signed rank test statistic cumulative distribution function (CDF).", "license": "Apache-2.0", "author": { @@ -37,23 +37,23 @@ "url": "https://github.com/stdlib-js/stdlib/issues" }, "dependencies": { - "@stdlib/constants-float64-ln-two": "^0.0.8", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-special-exp": "^0.0.6", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/utils-constant-function": "^0.0.8", - "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.7", - "@stdlib/utils-memoize": "^0.0.8" + "@stdlib/constants-float64-ln-two": "^0.1.0", + "@stdlib/math-base-assert-is-finite": "^0.1.0", + "@stdlib/math-base-assert-is-nan": "^0.1.0", + "@stdlib/math-base-assert-is-positive-integer": "^0.1.0", + "@stdlib/math-base-special-exp": "^0.1.0", + "@stdlib/math-base-special-round": "^0.1.0", + "@stdlib/utils-constant-function": "^0.1.0", + "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0", + "@stdlib/utils-memoize": "^0.1.0" }, "devDependencies": { - "@stdlib/bench": "^0.0.12", - "@stdlib/constants-float64-eps": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/math-base-special-abs": "^0.0.6", - "@stdlib/math-base-special-ceil": "^0.0.8", + "@stdlib/bench": "^0.1.0", + "@stdlib/constants-float64-eps": "^0.1.0", + "@stdlib/constants-float64-ninf": "^0.1.0", + "@stdlib/constants-float64-pinf": "^0.1.0", + "@stdlib/math-base-special-abs": "^0.1.0", + "@stdlib/math-base-special-ceil": "^0.1.0", "@stdlib/random-base-randu": "^0.0.8", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", "istanbul": "^0.4.1", diff --git a/test/test.cdf.js b/test/test.cdf.js index aca8596..9905401 100644 --- a/test/test.cdf.js +++ b/test/test.cdf.js @@ -38,7 +38,7 @@ var data = require( './fixtures/r/data.json' ); tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); - t.equal( typeof cdf, 'function', 'main export is a function' ); + t.strictEqual( typeof cdf, 'function', 'main export is a function' ); t.end(); }); diff --git a/test/test.factory.js b/test/test.factory.js index 4b83804..ee25ed7 100644 --- a/test/test.factory.js +++ b/test/test.factory.js @@ -38,7 +38,7 @@ var data = require( './fixtures/r/data.json' ); tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); - t.equal( typeof factory, 'function', 'main export is a function' ); + t.strictEqual( typeof factory, 'function', 'main export is a function' ); t.end(); }); diff --git a/test/test.js b/test/test.js index 1cee210..41fd686 100644 --- a/test/test.js +++ b/test/test.js @@ -28,7 +28,7 @@ var cdf = require( './../lib' ); tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); - t.equal( typeof cdf, 'function', 'main export is a function' ); + t.strictEqual( typeof cdf, 'function', 'main export is a function' ); t.end(); });