diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 8e9168c..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-08-01T03:09:31.336Z diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index 334eb59..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: | diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..7d287a2 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,3 @@ +/// +import dsemch from '../docs/types/index'; +export = dsemch; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..5c9d0d9 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,9 @@ +"use strict";var s=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var n=s(function(w,u){ +var p=require('@stdlib/stats-base-dvariancech/dist'),y=require('@stdlib/math-base-special-sqrt/dist');function x(e,r,a,i){return y(p(e,r,a,i)/e)}u.exports=x +});var c=s(function(z,v){ +var f=require('@stdlib/stats-base-dvariancech/dist').ndarray,j=require('@stdlib/math-base-special-sqrt/dist');function l(e,r,a,i,h){return j(f(e,r,a,i,h)/e)}v.exports=l +});var o=s(function(A,d){ +var R=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),q=n(),_=c();R(q,"ndarray",_);d.exports=q +});var E=require("path").join,O=require('@stdlib/utils-try-require/dist'),b=require('@stdlib/assert-is-error/dist'),g=o(),t,m=O(E(__dirname,"./native.js"));b(m)?t=g:t=m;module.exports=t; +/** @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..def156d --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../lib/dsemch.js", "../lib/ndarray.js", "../lib/main.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 dvariancech = require( '@stdlib/stats-base-dvariancech' );\nvar sqrt = require( '@stdlib/math-base-special-sqrt' );\n\n\n// MAIN //\n\n/**\n* Computes the standard error of the mean for a double-precision floating-point strided array using a one-pass trial mean algorithm.\n*\n* @param {PositiveInteger} N - number of indexed elements\n* @param {number} correction - degrees of freedom adjustment\n* @param {Float64Array} x - input array\n* @param {integer} stride - stride length\n* @returns {number} standard error of the mean\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );\n* var N = x.length;\n*\n* var v = dsemch( N, 1, x, 1 );\n* // returns ~1.20185\n*/\nfunction dsemch( N, correction, x, stride ) {\n\treturn sqrt( dvariancech( N, correction, x, stride ) / N );\n}\n\n\n// EXPORTS //\n\nmodule.exports = dsemch;\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 dvariancech = require( '@stdlib/stats-base-dvariancech' ).ndarray;\nvar sqrt = require( '@stdlib/math-base-special-sqrt' );\n\n\n// MAIN //\n\n/**\n* Computes the standard error of the mean for a double-precision floating-point strided array using a one-pass trial mean algorithm.\n*\n* @param {PositiveInteger} N - number of indexed elements\n* @param {number} correction - degrees of freedom adjustment\n* @param {Float64Array} x - input array\n* @param {integer} stride - stride length\n* @param {NonNegativeInteger} offset - starting index\n* @returns {number} standard error of the mean\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var floor = require( '@stdlib/math-base-special-floor' );\n*\n* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );\n* var N = floor( x.length / 2 );\n*\n* var v = dsemch( N, 1, x, 2, 1 );\n* // returns 1.25\n*/\nfunction dsemch( N, correction, x, stride, offset ) {\n\treturn sqrt( dvariancech( N, correction, x, stride, offset ) / N );\n}\n\n\n// EXPORTS //\n\nmodule.exports = dsemch;\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 setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar dsemch = require( './dsemch.js' );\nvar ndarray = require( './ndarray.js' );\n\n\n// MAIN //\n\nsetReadOnly( dsemch, 'ndarray', ndarray );\n\n\n// EXPORTS //\n\nmodule.exports = dsemch;\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* Compute the standard error of the mean for a double-precision floating-point strided array using a one-pass trial mean algorithm.\n*\n* @module @stdlib/stats-base-dsemch\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var dsemch = require( '@stdlib/stats-base-dsemch' );\n*\n* var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );\n* var N = x.length;\n*\n* var v = dsemch( N, 1, x, 1 );\n* // returns ~1.20185\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var floor = require( '@stdlib/math-base-special-floor' );\n* var dsemch = require( '@stdlib/stats-base-dsemch' );\n*\n* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );\n* var N = floor( x.length / 2 );\n*\n* var v = dsemch.ndarray( N, 1, x, 2, 1 );\n* // returns 1.25\n*/\n\n// MODULES //\n\nvar join = require( 'path' ).join;\nvar tryRequire = require( '@stdlib/utils-try-require' );\nvar isError = require( '@stdlib/assert-is-error' );\nvar main = require( './main.js' );\n\n\n// MAIN //\n\nvar dsemch;\nvar tmp = tryRequire( join( __dirname, './native.js' ) );\nif ( isError( tmp ) ) {\n\tdsemch = main;\n} else {\n\tdsemch = tmp;\n}\n\n\n// EXPORTS //\n\nmodule.exports = dsemch;\n\n// exports: { \"ndarray\": \"dsemch.ndarray\" }\n"], + "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAc,QAAS,gCAAiC,EACxDC,EAAO,QAAS,gCAAiC,EAuBrD,SAASC,EAAQC,EAAGC,EAAYC,EAAGC,EAAS,CAC3C,OAAOL,EAAMD,EAAaG,EAAGC,EAAYC,EAAGC,CAAO,EAAIH,CAAE,CAC1D,CAKAJ,EAAO,QAAUG,ICrDjB,IAAAK,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAc,QAAS,gCAAiC,EAAE,QAC1DC,EAAO,QAAS,gCAAiC,EAyBrD,SAASC,EAAQC,EAAGC,EAAYC,EAAGC,EAAQC,EAAS,CACnD,OAAON,EAAMD,EAAaG,EAAGC,EAAYC,EAAGC,EAAQC,CAAO,EAAIJ,CAAE,CAClE,CAKAJ,EAAO,QAAUG,ICvDjB,IAAAM,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAc,QAAS,uDAAwD,EAC/EC,EAAS,IACTC,EAAU,IAKdF,EAAaC,EAAQ,UAAWC,CAAQ,EAKxCH,EAAO,QAAUE,ICejB,IAAIE,EAAO,QAAS,MAAO,EAAE,KACzBC,EAAa,QAAS,2BAA4B,EAClDC,EAAU,QAAS,yBAA0B,EAC7CC,EAAO,IAKPC,EACAC,EAAMJ,EAAYD,EAAM,UAAW,aAAc,CAAE,EAClDE,EAASG,CAAI,EACjBD,EAASD,EAETC,EAASC,EAMV,OAAO,QAAUD", + "names": ["require_dsemch", "__commonJSMin", "exports", "module", "dvariancech", "sqrt", "dsemch", "N", "correction", "x", "stride", "require_ndarray", "__commonJSMin", "exports", "module", "dvariancech", "sqrt", "dsemch", "N", "correction", "x", "stride", "offset", "require_main", "__commonJSMin", "exports", "module", "setReadOnly", "dsemch", "ndarray", "join", "tryRequire", "isError", "main", "dsemch", "tmp"] +} diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index fd2ab40..238696b 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 /** * Interface describing `dsemch`.