From 57c4f6e963a4a904fce2991e397822480267248a Mon Sep 17 00:00:00 2001 From: Jaysukh-409 Date: Sun, 29 Dec 2024 18:59:17 +0530 Subject: [PATCH 1/6] feat: add stats/base/dists/planck/median --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: passed - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../stats/base/dists/planck/median/README.md | 139 ++++++++++++++++++ .../planck/median/benchmark/benchmark.js | 52 +++++++ .../base/dists/planck/median/docs/repl.txt | 26 ++++ .../dists/planck/median/docs/types/index.d.ts | 52 +++++++ .../dists/planck/median/docs/types/test.ts | 44 ++++++ .../dists/planck/median/examples/index.js | 31 ++++ .../base/dists/planck/median/lib/index.js | 43 ++++++ .../base/dists/planck/median/lib/main.js | 62 ++++++++ .../base/dists/planck/median/package.json | 70 +++++++++ .../median/test/fixtures/python/data.json | 1 + .../median/test/fixtures/python/runner.py | 77 ++++++++++ .../base/dists/planck/median/test/test.js | 72 +++++++++ 12 files changed, 669 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/data.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py create mode 100644 lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md new file mode 100644 index 000000000000..4ad9850400a8 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md @@ -0,0 +1,139 @@ + + +# Median + +> Planck (discrete exponential) distribution [median][median]. + + + +
+ +The [median][median] for a Planck random variable is + + + +```math +\mathop{\mathrm{Median}}\left( X \right) = \left\lceil -\frac{\ln(0.5)}{\lambda} \right\rceil \!-1 +``` + + + +where `lambda` is the shape parameter. + +
+ + + + + +
+ +## Usage + +```javascript +var median = require( '@stdlib/stats/base/dists/planck/median' ); +``` + +#### median( lambda ) + +Returns the [median][median] of a Planck distribution with shape parameter `lambda`. + +```javascript +var v = median( 0.1 ); +// returns 6 + +v = median( 1.5 ); +// returns 0 +``` + +If provided a success probability `lambda` which is nonpositive or `NaN`, the function returns `NaN`. + +```javascript +var v = median( NaN ); +// returns NaN + +v = median( -1.5 ); +// returns NaN +``` + +
+ + + + + +
+ +
+ + + + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var median = require( '@stdlib/stats/base/dists/planck/median' ); + +var lambda = uniform( 10, 0.1, 10.0 ); + +var v; +var i; +for ( i = 0; i < lambda.length; i++ ) { + v = median( lambda[ i ] ); + console.log( 'λ: %d, Median(X;λ): %d', lambda[ i ].toFixed( 4 ), v.toFixed( 4 ) ); +} +``` + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js new file mode 100644 index 000000000000..b1a4301728cf --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pkg = require( './../package.json' ).name; +var median = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var lambda; + var y; + var i; + + lambda = uniform( 100, 0.1, 10.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = median( lambda[ i % lambda.length ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt new file mode 100644 index 000000000000..0af3b9fca69f --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt @@ -0,0 +1,26 @@ + +{{alias}}( λ ) + Returns the median of a geometric distribution with shape parameter `λ`. + + If `lambda <= 0`, the function returns `NaN`. + + Parameters + ---------- + λ: number + Shape parameter. + + Returns + ------- + out: integer + Median. + + Examples + -------- + > var v = {{alias}}( 0.1 ) + 6 + > v = {{alias}}( 1.5 ) + 0 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts new file mode 100644 index 000000000000..cf1f9d4435a0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts @@ -0,0 +1,52 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Returns the median of a Planck distribution. +* +* ## Notes +* +* - If `lambda <= 0`, the function returns `NaN`. +* +* @param lambda - shape parameter +* @returns median +* +* @example +* var v = median( 0.1 ); +* // returns 6 +* +* @example +* var v = median( 1.5 ); +* // returns 0 +* +* @example +* var v = median( -1.1 ); +* // returns NaN +* +* @example +* var v = median( NaN ); +* // returns NaN +*/ +declare function median( lambda: number ): number; + + +// EXPORTS // + +export = median; diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts new file mode 100644 index 000000000000..86ad0a9c497e --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import median = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + median( 0.3 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + median( true ); // $ExpectError + median( false ); // $ExpectError + median( null ); // $ExpectError + median( undefined ); // $ExpectError + median( '5' ); // $ExpectError + median( [] ); // $ExpectError + median( {} ); // $ExpectError + median( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + median(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js new file mode 100644 index 000000000000..2a79c2bf0365 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js @@ -0,0 +1,31 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var median = require( './../lib' ); + +var lambda = uniform( 10, 0.1, 10.0 ); + +var v; +var i; +for ( i = 0; i < lambda.length; i++ ) { + v = median( lambda[ i ] ); + console.log( 'λ: %d, Median(X;λ): %d', lambda[ i ].toFixed( 4 ), v.toFixed( 4 ) ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js new file mode 100644 index 000000000000..11de3faaa0c6 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Planck distribution median. +* +* @module @stdlib/stats/base/dists/planck/median +* +* @example +* var median = require( '@stdlib/stats/base/dists/planck/median' ); +* +* var v = median( 0.1 ); +* // returns 6 +* +* v = median( 1.5 ); +* // returns 0 +*/ + +// MODULES // + +var median = require( './main.js' ); + + +// EXPORTS // + +module.exports = median; diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js new file mode 100644 index 000000000000..7e663c473490 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js @@ -0,0 +1,62 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var ceil = require( '@stdlib/math/base/special/ceil' ); +var ln = require( '@stdlib/math/base/special/ln' ); + + +// MAIN // + +/** +* Returns the median of a Planck distribution. +* +* @param {PositiveNumber} lambda - shape parameter +* @returns {NonNegativeInteger} median +* +* @example +* var v = median( 0.1 ); +* // returns 6 +* +* @example +* var v = median( 1.5 ); +* // returns 0 +* +* @example +* var v = median( -1.1 ); +* // returns NaN +* +* @example +* var v = median( NaN ); +* // returns NaN +*/ +function median( lambda ) { + if ( isnan( lambda ) || lambda <= 0.0 ) { + return NaN; + } + return ceil( -ln( 0.5 ) / lambda ) - 1.0; +} + + +// EXPORTS // + +module.exports = median; diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/package.json b/lib/node_modules/@stdlib/stats/base/dists/planck/median/package.json new file mode 100644 index 000000000000..9b9a3fd74a1c --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/package.json @@ -0,0 +1,70 @@ +{ + "name": "@stdlib/stats/base/dists/geometric/median", + "version": "0.0.0", + "description": "Planck (discrete exponential) distribution median.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "statistics", + "stats", + "distribution", + "dist", + "parameter", + "memoryless", + "life-time", + "discrete", + "median", + "quantile", + "location", + "percentile", + "order", + "planck", + "univariate" + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/data.json b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/data.json new file mode 100644 index 000000000000..ecf98b16e41d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/data.json @@ -0,0 +1 @@ +{"lambda": [0.6289730391502801, 0.5171096148794918, 14.178194791576393, 6.6024606254878755, 18.92935889368463, 9.72051706614424, 10.366707168328695, 16.024456009500568, 2.7616064840793086, 18.308207740454442, 10.80947402866265, 10.067290383560143, 15.04933014666356, 11.6955688176213, 4.507634917646117, 18.995039266337034, 10.411528827461993, 16.847521030851794, 12.170077577852902, 19.451998254673143, 15.015264028477432, 10.565644320661164, 2.7173495249312007, 0.43421768234642943, 17.565299645382325, 12.161072550701208, 14.18888312432108, 7.027487235952394, 0.7698788584092542, 9.879714225561404, 4.7933524516564185, 9.105612873644667, 13.331251931417281, 0.0676377988553667, 12.309013271645004, 11.80983319418754, 7.625073891512127, 11.890859529768578, 12.622972119013616, 7.484673187799582, 14.958693931751563, 9.585507781261843, 17.999988518120414, 13.928817791597046, 0.5123700789051866, 13.149053415533608, 4.063264138312417, 13.315993362610286, 4.9381503527995925, 3.9847049785957633, 14.081871868485905, 0.9625410388178945, 7.653853914227042, 19.763070690177447, 18.822684574520853, 5.268657882258316, 0.03140839555164199, 14.620714248807825, 8.290873056227397, 9.46387703020332, 0.6036563126507399, 0.006370851977286485, 14.699120838906765, 9.679182338264628, 4.282177991189604, 9.990464856958113, 6.8631695537284765, 8.887171168815609, 19.6396963090317, 16.880578042153022, 8.155288867148682, 10.398940795250763, 15.688523418964175, 3.383145337840152, 15.302305442652768, 17.780980124568938, 6.876264708899078, 5.5513984202085105, 19.372363960009764, 12.818851864354588, 19.97567828654851, 10.583168115049661, 1.9975194971879806, 8.667258396425446, 9.957811669503425, 1.9967116100946325, 8.506126281124473, 15.772815687288421, 15.358196414798314, 12.767693715645256, 11.328034719260202, 5.299576208164121, 4.445965461688455, 18.49840066999584, 19.011261413539696, 4.377983862634642, 10.668907909196815, 14.961735564553626, 12.346766432482498, 19.957364421014116, 10.696570935171385, 2.092709326952662, 6.068188458664762, 4.3841531181107545, 15.499359738668927, 16.91314143299677, 14.339751166713599, 5.8458383498647475, 9.578732937166743, 11.67858839604408, 3.3493676120871596, 8.245658383568095, 10.434830508193986, 0.9232969261256452, 3.2009316192765236, 4.373351766843188, 3.0424424247434034, 4.799988210508939, 19.350396220434376, 0.5894299693303928, 17.652057404081944, 6.563936957406009, 12.304530676454576, 9.897912967788102, 17.150863828539368, 17.977174410119904, 12.686109935635084, 14.311430760892454, 4.76018515705203, 9.402738208203175, 4.553434811928339, 14.585461153933483, 16.58579158440491, 1.4358264189885328, 2.42234371405476, 11.85488538166678, 8.059393329228863, 7.400052587094694, 17.213439124548437, 7.075750412164097, 16.144806476050746, 10.659109046102113, 1.0488094873960985, 3.767698071011809, 12.884449852995317, 2.566433231607932, 9.578935913642116, 15.871392202038809, 0.3402917317683163, 13.513520358462916, 6.34933377449798, 12.959462566002637, 4.997075705135822, 4.832961408276195, 16.588306024374027, 7.378912083014521, 4.390301712649533, 1.9344809272872765, 5.284193422662753, 5.552128264515108, 15.038955074234838, 19.927866187717648, 14.949614789429537, 19.114964479475503, 16.84734623936525, 10.314318465084666, 4.727693597492615, 19.620840460801073, 9.50558056327852, 8.771396039516135, 4.325905019547096, 10.749731274979306, 2.605715591546467, 0.7597918670435178, 19.814373026610852, 11.747008954969132, 12.580661478235797, 12.573325527051523, 14.720609947957126, 0.6220453064640341, 10.714712851504602, 10.157832338069316, 12.543713376432787, 14.935957278306475, 8.050320156926617, 18.9372580514597, 8.759035380981077, 18.950374823504426, 4.824952674153183, 19.234525728846737, 18.919413721175683, 19.960675621776186, 6.5605011154439214, 6.178444160834156, 19.855559017418653, 7.6822757192463325, 10.472109364557571, 4.167421798721458, 5.432961657783264, 13.100397088796736, 0.09206803258644314, 13.985873705376706, 17.445061107411966, 5.427437282765581, 2.308384310446896, 7.954571627335046, 2.7555264462332962, 4.808396316365895, 15.79534831104834, 18.482485959237774, 5.035442728318145, 1.4281199768315678, 15.115458729004008, 4.684451456508503, 10.494005895754304, 12.28883377568257, 9.382824896529877, 9.856539269577143, 11.597493097568654, 13.783741075741567, 17.044553575626882, 17.4169825969828, 11.04983712410781, 18.444592905520697, 9.587347725036054, 12.657737189173188, 6.328349801418344, 12.287693830388605, 0.17586776385793312, 19.569731919320322, 16.097232233054065, 19.77750800304311, 12.034579809502821, 17.56083655911941, 11.5926920697655, 6.196495602686872, 11.020748897227229, 6.293226859403111, 19.874440363758023, 5.185997614782696, 11.37470535988938, 5.600188960827475, 6.68180637926066, 7.94160136131568, 18.078764424360312, 13.170593743900245, 11.958127288465121, 10.917711389717118, 16.986663360493527, 4.856986013568145, 19.81956752911161, 17.796099109683286, 16.86097053249916, 18.5689657939734, 2.15102040002906, 1.5756398798597582, 9.524539877012948, 7.508505335348934, 11.283750655607658, 7.637021782639611, 0.914768283161207, 6.394233770387858, 7.147264877550019, 9.23265714880618, 13.68027614913871, 3.0470863921794478, 2.6832481471927605, 4.987675879340021, 5.724468082642549, 6.992292385062095, 9.005553659366068, 7.937814558600891, 10.621947363457252, 15.293050849991104, 13.976536595132332, 4.81673595712558, 18.22553755612266, 13.10716117088472, 3.190243829545396, 16.579211489215737, 1.7615269475295525, 12.20431633004732, 14.800899694180412, 3.977529505687687, 10.470944436042252, 17.858914085890227, 18.688954197142905, 19.298355794390677, 4.123127280291459, 0.7329702947966332, 1.769648642500956, 17.29676694403604, 5.213769161453456, 3.6971891372738575, 2.1976645944439577, 0.5189524093594167, 8.466008216834332, 19.94782877000408, 0.06565802533232912, 7.467144412294098, 11.276195520040291, 6.942142158567661, 15.106107289205754, 2.766028542879526, 10.648317876079858, 14.67672487938205, 1.7323138190717002, 11.109802647961695, 14.324653447804161, 6.679070664356759, 19.196886858383625, 11.258595795042798, 7.721063481285249, 6.459409418414972, 12.774428881222377, 3.2092908759581085, 3.9097571640265083, 19.60643619894303, 2.5236854683822263, 15.847547557246738, 15.969786150206788, 19.44003245210698, 17.860211248994492, 12.343126907670337, 15.05115061636378, 13.6491241949465, 12.120325536397525, 17.183145617119056, 3.0561358850657894, 0.6419392374791166, 19.82692484930318, 6.332269117064351, 19.525438455945622, 9.275287351514978, 14.590015768505447, 14.788167388736175, 6.58664424829092, 0.1883938841908006, 2.7286996565599475, 15.328726078035402, 8.981610843384066, 6.850580893696934, 0.944412241996655, 10.725541635413913, 14.259499617400671, 15.660076974864822, 3.0351015563932693, 4.791408809348193, 8.872732194794953, 5.697997389789564, 19.015686716325458, 4.5095454092276395, 10.083077449706657, 15.458341837165223, 17.492129829815994, 9.003820436807228, 12.269918124058961, 11.07211824367154, 2.900054455393375, 1.0367695679071454, 18.842347960850216, 5.772920099948495, 2.3293625132016005, 15.063627414208229, 5.722171553103969, 6.297525313121115, 11.14465381868337, 4.212000440612211, 7.899174070673, 17.342239593510804, 1.0891515674439134, 4.55684484516838, 15.801981693649488, 5.2586051884262, 12.45026152862939, 1.3458340408711722, 9.622185325152282, 14.899722954984963, 6.947221507606605, 3.7934062046459793, 9.907386279401534, 14.689974973102242, 6.209507427084082, 11.559212367108053, 16.645298324397885, 18.78541072982791, 9.896108479775773, 8.807726980329614, 7.635883262619892, 16.938575461669313, 3.7430836643960297, 15.474937540109737, 2.932371502959439, 14.524503024519015, 5.00961692058028, 13.554619256588747, 11.188209803428135, 12.28826427059305, 15.222195335581503, 8.187172270212496, 14.115945892797441, 17.27030972006904, 9.651588460979063, 4.030423035831793, 11.359376800951729, 10.845973420103302, 12.493815461776713, 14.962367616680503, 8.023348451629001, 12.664943045269348, 16.407150719713552, 7.935687467166533, 15.173426539520932, 12.154524843540129, 10.232215506915004, 16.168664998177398, 5.260525586130185, 16.139116049290813, 9.5184916988536, 8.990415400669916, 12.852174352322251, 16.50749623140936, 15.236167466510045, 19.98866233091926, 19.147214745879054, 3.420052745391342, 10.045462578565838, 4.97980378755612, 8.038893942984185, 1.7810716451451025, 5.30366392248702, 2.3434131905570155, 3.7049840172074, 17.738644163937064, 8.159273685718407, 14.684071478550502, 7.562638106673269, 1.557795177835839, 5.993382331487817, 6.250129106276001, 17.49560395337484, 8.482811184727971, 13.189110413140952, 0.9618531487254867, 13.951452008438537, 14.703042047608605, 4.207051083289695, 2.4825545512025537, 4.716213007028511, 4.100762947267906, 10.293712192131023, 2.7740004670748175, 3.8685568228898415, 8.269519754327375, 2.436174591595812, 5.127091378075079, 1.591607149466081, 9.320228166036204, 5.677879642459088, 4.635476430651064, 7.539452743220276, 9.555502721296403, 11.421232214629825, 1.1379197653556772, 4.438114589355484, 11.67852451716421, 8.073819651938091, 6.61500181341335, 12.612368718623614, 0.015638098571459924, 3.085554091356131, 6.7742268102177405, 19.74466200000856, 4.151692997380001, 17.020817892064443, 17.769827668960392, 2.5322066446102953, 19.83613746073882, 2.4849686730839893, 7.302751470988094, 17.67168010384925, 19.76631986434353, 17.205914956010965, 8.179779341587983, 6.68570202415431, 10.937091524841415, 18.477997584634295, 0.132080596468791, 2.0904375528160712, 0.020012716549084875, 7.9920529301573096, 10.3838894025798, 17.991979671762948, 18.85410059495219, 5.431498440236626, 16.40672047682229, 10.212349824504571, 8.389274102480794, 2.6524586981629517, 2.6722624613976853, 17.791984746348124, 13.976515881649652, 2.7809866528003813, 3.8815538890721113, 0.9953459302710232, 17.106107931326882, 9.57024821843314, 12.737373147215973, 0.3472490967273911, 18.38233070295828, 17.821222307730974, 2.6854604554954897, 9.03649723046682, 17.27240273362839, 9.488943222537202, 10.103022009462954, 13.252784840600748, 14.016633444940297, 0.39852014729143237, 10.736568165001463, 19.259772059434447, 5.1100291585056095, 9.815228939458468, 2.37916014553887, 18.635933120921628, 7.097270634734228, 8.734354002569013, 10.984566801593358, 6.181224335880378, 18.22127997092038, 13.237319359045916, 17.14767727194075, 14.624285462357253, 8.295111030308632, 13.410226070651955, 1.394969600560192, 10.130642340741565, 4.9723507779713465, 11.160477946251103, 14.32006589685459, 0.13100636561549361, 4.770360888956668, 1.6994870958935704, 3.4816163268265643, 5.4889127157184525, 0.11445099402277226, 11.483390621973143, 2.629978859091102, 6.068348297461872, 3.991351215123653, 1.9451518109346977, 15.005580972134226, 3.828694464878728, 3.2322279480286698, 1.110032466843811, 4.679927084729469, 19.22152402513499, 9.452561377999844, 0.042938382015742516, 11.260348309313976, 3.9393644443120768, 11.99598468718496, 3.6048279582227805, 1.504034647130723, 0.9083290632436425, 6.066681829294234, 7.512705126838832, 6.781093271175962, 11.045511286487322, 18.714160808472503, 17.960108628635712, 0.9276095445698873, 5.979605796897156, 12.655475546386256, 19.317964620161657, 17.310680396560848, 5.393987820295713, 2.5164709208053826, 19.201105028732453, 8.30065924421869, 8.07998498731745, 8.658025890337926, 1.4058451772317193, 10.308050446523131, 6.7408508065710215, 4.631158388132333, 0.545638543125393, 11.201046554428657, 3.405850878998715, 7.019648253422963, 2.057608106924669, 14.308083900880897, 9.01038284158262, 6.526531182483213, 11.036447075514088, 2.6542730694752925, 11.616840386134212, 16.696322623055096, 2.5187304738975125, 14.85010192434875, 19.73130706099658, 16.54781543706625, 16.608307272755525, 12.090552098012513, 17.980894479154298, 14.1197699603733, 9.035476133960765, 9.354927192409559, 2.598603630435332, 13.563974780345603, 0.5971912314937011, 7.704476168436782, 19.199778104162938, 18.763490466891398, 0.8865400043896665, 3.3516000088586595, 13.719837258111207, 16.47636691680155, 8.2056613086725, 4.776073701477852, 12.453614957857376, 14.658238967593194, 9.425459943736458, 10.111729370260488, 14.603084105288254, 8.179459319594802, 3.005986328232746, 8.186854263489703, 11.044704465126696, 11.802223762982358, 2.8294726999029596, 6.708402227936312, 19.119955232787053, 2.5096272838878053, 16.15690515126144, 15.229564991482858, 12.132241346133537, 15.378149389249614, 7.27121076525721, 18.303927147423853, 9.892315529592304, 18.37343646917691, 10.299213192264109, 6.255869192745336, 8.162152669470936, 18.11303617189258, 7.189220064769142, 12.012083421075408, 7.203583571125682, 0.8503672356186631, 15.442253113958966, 10.712965724352173, 0.11992458324612265, 13.413327507019615, 2.89049934356433, 1.8646899767103786, 11.190938335309975, 9.221964834663297, 17.598891914449094, 15.680595702984306, 16.279766751793552, 0.6043920359214705, 6.62240667721724, 5.918957831742895, 5.8464583998025565, 15.996598123923452, 12.780667730434063, 9.005597563065628, 11.277223435637358, 3.400044502877244, 9.794529453232116, 13.803490197297856, 6.304027276306748, 18.832351670918058, 9.963088283910393, 17.907020664115542, 12.185965056681123, 3.1246978771805978, 5.502051195879039, 16.929471740991776, 5.8542700994249275, 7.076316700113685, 0.793966435307274, 8.003460122465798, 14.88190147574575, 8.221679540788545, 6.805182402549881, 4.285339197108213, 4.872837824578353, 16.915460891259187, 3.9145496572625427, 11.456217083183732, 16.182316781166627, 16.161108881329657, 2.532002529781001, 10.473774220542015, 2.4075342425038193, 10.78282390387452, 6.248621630209492, 17.75440127378524, 9.9311656595737, 1.3268847054032529, 8.210741488240725, 7.947879764835468, 18.237066101797502, 4.727630541429814, 7.159377188166802, 3.010953749299643, 3.3223787634495583, 2.2204890320477544, 14.073066857965502, 10.083748710517815, 10.427245925642119, 11.943902286968747, 7.355105173847147, 5.547650805109477, 5.773048650553861, 2.967071984352072, 8.664137327476046, 13.968103640085296, 8.551637169475283, 18.40475902220022, 4.331569171309491, 0.6464688861003154, 4.661858068174771, 2.189333652455654, 12.421478957927064, 14.361980338010733, 13.67075301753627, 11.002902357928503, 6.857351961062448, 7.616632473283548, 14.957674047209984, 11.559415413236042, 13.607739523152825, 15.648460110940682, 7.759589695816748, 10.052178359112345, 13.521930743536457, 0.3381577870713248, 5.4055570692198485, 7.343928163687565, 1.6967675325760179, 15.481612686006645, 9.239183395116623, 17.299163244825746, 13.93862323231517, 5.295707407696366, 2.527913103733739, 7.552389382941462, 9.8846962689274, 7.639716845230959, 9.55517010993308, 10.649937202585368, 18.823403242048776, 5.48216990790171, 18.077106768797677, 18.248264300873082, 17.77711773137866, 11.315081425798395, 6.835250001553601, 12.229026211607554, 18.89231724559677, 18.838047363740348, 3.129607907081462, 16.64485822628061, 13.168445023826, 9.295724764796363, 7.348919063635757, 8.205082142587663, 9.635493503244701, 5.644173744806569, 15.403421928123603, 4.613547739424424, 19.848021597068364, 1.0324965051315793, 12.853355289644856, 15.087523368834134, 7.494325779217725, 17.237461417987905, 5.498198305609061, 0.8472560851005384, 15.241574092546113, 5.36354789900408, 11.706765700705265, 11.163993865232243, 10.301071002280493, 19.084684125227565, 18.476944989437605, 16.89430772151345, 3.1775157159972856, 3.089313603774748, 7.293569229414583, 9.672228870789297, 18.444382897413824, 2.3311983174232953, 16.481296788284137, 7.034060223478107, 2.982786494266827, 10.206764899337013, 1.2076660824124597, 4.335605431382168, 0.8858029872604956, 12.638711874197924, 14.748923559212155, 14.69878491002395, 16.786265026845115, 14.757700984351455, 8.459286168586003, 8.305904396211993, 17.25374820286053, 14.243552819857719, 16.348612667218788, 2.056486954363139, 10.614338120924224, 8.11693844930345, 18.473561219112227, 6.551707093360073, 18.361576726897187, 11.571155479350391, 10.563402651589545, 2.3654564966731395, 0.16085018079683877, 9.650670985080346, 3.7372876032680824, 16.316215675864132, 17.592215339237605, 11.589467631693136, 6.627041496827946, 0.740171347236942, 14.948461027812886, 10.90579918860017, 7.368412899124137, 6.137971004461775, 2.4839975322762187, 14.694188840205102, 0.27246750137986053, 7.058367176279072, 6.695098921988172, 12.90747491035682, 8.007182806944943, 10.421755222551658, 17.486739578731257, 7.292477333356196, 15.749335804779982, 9.994138170796411, 19.251408291361248, 6.160390343921374, 3.572019045502368, 13.835404355585956, 13.918482758530855, 11.434978464706148, 4.447841000541293, 15.514980336721642, 8.533717136683137, 0.479006377433453, 5.2551871070051455, 14.984012638580179, 5.7922199895441295, 1.1177341783543238, 5.105710263493862, 10.510794164408681, 18.545422454342344, 11.945590757603966, 2.425180477098079, 13.482227429977659, 1.4650521430865027, 15.043968272234556, 2.1770910591806603, 2.318282909719127, 18.56500319003571, 10.160202094965832, 4.588005569701313, 3.6394005619307945, 0.982449049757641, 9.578996788505274, 2.206449827414909, 13.242080795035921, 3.3423142724877053, 15.644639128475042, 5.684893062319521, 12.710509701465128, 10.160276079081871, 9.308073478801242, 8.948946353097082, 18.63069326513282, 7.229444028565362, 17.435052741720718, 16.866571772529014, 0.5353913191276005, 6.269621429470476, 12.25132708166515, 13.477624713960402, 17.252855288079306, 16.726761017237937, 3.5468684347155555, 19.43508560637063, 4.048604882718855, 8.166651493342352, 4.320479329638394, 16.639596957245587, 0.3367492300151609, 0.09588596702912344, 1.1883702040911492, 5.112537182811505, 11.241381387580596, 3.204087093589274, 7.564017741696805, 6.549970317305462, 6.700243679457925, 5.651810114677653, 11.008273168586829, 16.071351243956148, 0.23186572598135058, 19.90489045329883, 5.568421837946273, 2.6497049502071857, 3.236388168054385, 13.028274698720498, 6.201115368634305, 2.111693917612729, 14.384735231142864, 9.257202198719668, 14.98919656487516, 16.304910907905356, 3.7992168719760744, 13.989867833464384, 1.7028721963983395, 10.956935267801043, 9.094980516248626, 13.814201309740808, 6.053852228392087, 1.5969091846784633, 5.2655145818988025, 18.193048443055364, 18.414733125759216, 10.125709535898547, 4.826285409672158, 0.6737558024341284, 0.3334046459226636, 4.810015103407355, 10.489700226465981, 8.048325503558189, 11.327788695272229, 0.7893624324616733, 10.000312622560408, 0.3556465071021164, 10.580068642228566, 5.349281624139525, 8.60660476789231, 11.059342091304687, 9.950688874321287, 15.910903951876804, 10.262985562858109, 18.554894099484358, 3.703401974325624, 8.21455674317136, 16.99554337731132, 10.432735369956742, 14.0647446797454, 6.7436244561306875, 7.193648029992916, 17.12906415106996, 13.472764284989955, 6.378007633297196, 1.7486506004070645, 1.6192144536885578, 7.441127997199947, 7.17811392125782, 9.402992270538995, 0.18281992192664687, 13.999109118869985, 17.140784681741962, 15.357567349941537, 10.564178014699355, 7.683984098636518, 7.6083510252455415, 8.197692712748754, 2.9861164494770165, 17.334858193544385, 10.847681297869812, 10.011957133797827, 18.178818858921176, 9.973534355744857, 16.455780172751478, 16.090007351654062, 13.448805434031033, 4.30655679620894, 5.33752913553692, 7.405720911446445, 17.577176118153254, 1.7696507750775248, 14.979739347737432, 2.750865775612654, 10.169272184112568, 6.020737409993728, 15.387272864129837, 13.424199888588916, 14.888659117830445, 2.0121630481859887], "expected": [1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 10.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 22.0, 0.0, 0.0, 0.0, 1.0, 108.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py new file mode 100644 index 000000000000..69c60a878063 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py @@ -0,0 +1,77 @@ +#!/usr/bin/env python +# +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generate fixtures.""" + +import os +import json +import numpy as np +from scipy.stats import planck + +# Get the file path: +FILE = os.path.realpath(__file__) + +# Extract the directory in which this file resides: +DIR = os.path.dirname(FILE) + + +def gen(lam, name): + """ + Generate fixture data and write to file. + + # Arguments + + * `lam`: shape parameter. + * `name::str`: output filename. + + # Examples + + ```python + python> lam = np.random.rand(1000) * 20 + python> gen(lam, "data.json") + ``` + """ + # Compute standard deviation values: + z = np.array(planck.median(lam)) + + # Store data to be written to file as a dictionary: + data = { + "lambda": lam.tolist(), + "expected": z.tolist() + } + + # Based on the script directory, create an output filepath: + filepath = os.path.join(DIR, name) + + # Write the data to the output filepath as JSON: + with open(filepath, "w", encoding='utf-8') as outfile: + json.dump(data, outfile) + + # Include trailing newline: + with open(filepath, "a", encoding='utf-8') as outfile: + outfile.write("\n") + + +def main(): + """Generate fixture data.""" + lam = np.random.rand(1000) * 20.0 + gen(lam, "data.json") + + +if __name__ == "__main__": + main() diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js new file mode 100644 index 000000000000..3ce3b168dd48 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js @@ -0,0 +1,72 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var median = require( './../lib' ); + + +// FIXTURES // + +var data = require( './fixtures/python/data.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof median, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', function test( t ) { + var v = median( NaN ); + t.equal( isnan( v ), true, 'returns NaN' ); + t.end(); +}); + +tape( 'if provided a success probability `lambda` which is nonpositive, the function returns `NaN`', function test( t ) { + var v; + + v = median( 0.0 ); + t.equal( isnan( v ), true, 'returns NaN' ); + + v = median( -1.1 ); + t.equal( isnan( v ), true, 'returns NaN' ); + + t.end(); +}); + +tape( 'the function returns the median of a Planck distribution', function test( t ) { + var expected; + var lambda; + var i; + var y; + + expected = data.expected; + lambda = data.lambda; + for ( i = 0; i < expected.length; i++ ) { + y = median( lambda[ i ] ); + t.equal( y, expected[ i ], 'lambda: '+lambda[ i ]+', y: '+y+', expected: '+expected[ i ] ); + } + t.end(); +}); From e60102ca50676b76d5eb37b6e6d84bf14dbca32b Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 29 Dec 2024 13:34:53 +0000 Subject: [PATCH 2/6] chore: update copyright years --- .../@stdlib/stats/base/dists/planck/median/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js index 2a79c2bf0365..bc4d4a8092e9 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 8421c19e5876833283df0daa278af3509f02c1b6 Mon Sep 17 00:00:00 2001 From: Jaysukh-409 Date: Sun, 29 Dec 2024 19:46:53 +0530 Subject: [PATCH 3/6] chore: clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: passed --- --- .../@stdlib/stats/base/dists/planck/median/README.md | 2 +- .../@stdlib/stats/base/dists/planck/median/docs/repl.txt | 2 +- .../@stdlib/stats/base/dists/planck/median/test/test.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md index 4ad9850400a8..99893cdaa6df 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md @@ -36,7 +36,7 @@ The [median][median] for a Planck random variable is -where `lambda` is the shape parameter. +where `λ` is the shape parameter. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt index 0af3b9fca69f..bed10d430a76 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt @@ -2,7 +2,7 @@ {{alias}}( λ ) Returns the median of a geometric distribution with shape parameter `λ`. - If `lambda <= 0`, the function returns `NaN`. + If `λ <= 0`, the function returns `NaN`. Parameters ---------- diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js index 3ce3b168dd48..a08993ec0e6c 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js @@ -40,7 +40,7 @@ tape( 'main export is a function', function test( t ) { tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', function test( t ) { var v = median( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -48,10 +48,10 @@ tape( 'if provided a success probability `lambda` which is nonpositive, the func var v; v = median( 0.0 ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); v = median( -1.1 ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); From 7b972e2c1de7f329d3a247a67f0d24dedf7d6d89 Mon Sep 17 00:00:00 2001 From: Jaysukh-409 Date: Sun, 29 Dec 2024 20:17:10 +0530 Subject: [PATCH 4/6] chore: clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: passed - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../base/dists/planck/median/test/fixtures/python/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py index 69c60a878063..de4b86b49f5f 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py @@ -46,7 +46,7 @@ def gen(lam, name): python> gen(lam, "data.json") ``` """ - # Compute standard deviation values: + # Compute median values: z = np.array(planck.median(lam)) # Store data to be written to file as a dictionary: From c712b2b5fb51d11fbd233f086fa41b5aa52dd5a5 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 2 Jan 2025 06:56:07 +0000 Subject: [PATCH 5/6] chore: update copyright years --- .../@stdlib/stats/base/dists/planck/median/README.md | 2 +- .../stats/base/dists/planck/median/benchmark/benchmark.js | 2 +- .../stats/base/dists/planck/median/docs/types/index.d.ts | 2 +- .../@stdlib/stats/base/dists/planck/median/docs/types/test.ts | 2 +- .../@stdlib/stats/base/dists/planck/median/examples/index.js | 2 +- .../@stdlib/stats/base/dists/planck/median/lib/index.js | 2 +- .../@stdlib/stats/base/dists/planck/median/lib/main.js | 2 +- .../base/dists/planck/median/test/fixtures/python/runner.py | 2 +- .../@stdlib/stats/base/dists/planck/median/test/test.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md index 99893cdaa6df..066050effde7 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2024 The Stdlib Authors. +Copyright (c) 2025 The Stdlib Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js index b1a4301728cf..8ddf131c5afe 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts index cf1f9d4435a0..986814388b6c 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/index.d.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts index 86ad0a9c497e..bd0c67d3e16c 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/types/test.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js index bc4d4a8092e9..f87f00f66111 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js index 11de3faaa0c6..024a4937b034 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js index 7e663c473490..bfb1aaaaf87b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/lib/main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py index de4b86b49f5f..b0427c6ba890 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/fixtures/python/runner.py @@ -2,7 +2,7 @@ # # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2025 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js index a08993ec0e6c..4c2bebb50b9b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From a143e84d849639d0dcecde88518e1ad5c012e37c Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Wed, 1 Jan 2025 23:52:07 -0800 Subject: [PATCH 6/6] chore: clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../@stdlib/stats/base/dists/planck/median/README.md | 2 +- .../@stdlib/stats/base/dists/planck/median/docs/repl.txt | 2 +- .../@stdlib/stats/base/dists/planck/median/test/test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md index 066050effde7..f4c5107b5519 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/README.md @@ -64,7 +64,7 @@ v = median( 1.5 ); // returns 0 ``` -If provided a success probability `lambda` which is nonpositive or `NaN`, the function returns `NaN`. +If provided a shape parameter `lambda` which is nonpositive or `NaN`, the function returns `NaN`. ```javascript var v = median( NaN ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt index bed10d430a76..fd6a3c87419e 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/docs/repl.txt @@ -1,6 +1,6 @@ {{alias}}( λ ) - Returns the median of a geometric distribution with shape parameter `λ`. + Returns the median of a Planck distribution with shape parameter `λ`. If `λ <= 0`, the function returns `NaN`. diff --git a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js index 4c2bebb50b9b..7f7ad9d77436 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js +++ b/lib/node_modules/@stdlib/stats/base/dists/planck/median/test/test.js @@ -44,7 +44,7 @@ tape( 'if provided `NaN` for `lambda`, the function returns `NaN`', function tes t.end(); }); -tape( 'if provided a success probability `lambda` which is nonpositive, the function returns `NaN`', function test( t ) { +tape( 'if provided a shape parameter `lambda` which is nonpositive, the function returns `NaN`', function test( t ) { var v; v = median( 0.0 );