diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/README.md b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/README.md new file mode 100644 index 000000000000..22a2eaf0942a --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/README.md @@ -0,0 +1,138 @@ + + +# Standard Deviation + +> [Bradford][bradford-distribution] distribution [standard deviation][standard-deviation]. + + + +
+ +The [standard deviation][standard-deviation] for a [Bradford][bradford-distribution] random variable is + + + +```math +\sigma = \sqrt{\frac{(c+2) \ln(1+c) - 2c}{2c (\ln(1+c))^2}} +``` + + + + + +where `c` is the shape parameter. + +
+ + + + + +
+ +## Usage + +```javascript +var stdev = require( '@stdlib/stats/base/dists/bradford/stdev' ); +``` + +#### stdev( c ) + +Returns the [standard deviation][standard-deviation] of a [Bradford][bradford-distribution] distribution with shape parameter `c`. + +```javascript +var v = stdev( 0.1 ); +// returns ~0.289 + +v = stdev( 10.0 ); +// returns ~0.276 +``` + +If provided a shape parameter `c <= 0`, the function returns `NaN`. + +```javascript +var v = stdev( 0.0 ); +// returns NaN + +v = stdev( -1.5 ); +// returns NaN +``` + +
+ + + + + +
+ +
+ + + + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var stdev = require( '@stdlib/stats/base/dists/bradford/stdev' ); + +var c = uniform( 10, 0.1, 10.0 ); + +var v; +var i; +for ( i = 0; i < c.length; i++ ) { + v = stdev( c[ i ] ); + console.log( 'c: %d, SD(X;c): %d', c[ i ].toFixed( 4 ), v.toFixed( 4 ) ); +} +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/benchmark/benchmark.js new file mode 100644 index 000000000000..1abaae47cd51 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/benchmark/benchmark.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* 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. +* 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 stdev = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var c; + var y; + var i; + + c = uniform( 100, 0.1, 10.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = stdev( c[ i % c.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/bradford/stdev/docs/img/equation_bradford_stdev.svg b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/img/equation_bradford_stdev.svg new file mode 100644 index 000000000000..b3a7b05469a0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/img/equation_bradford_stdev.svg @@ -0,0 +1,67 @@ + +sigma equals StartRoot StartFraction left-parenthesis c plus 2 right-parenthesis ln left-parenthesis 1 plus c right-parenthesis minus 2 c Over 2 c left-parenthesis ln left-parenthesis 1 plus c right-parenthesis right-parenthesis squared EndFraction EndRoot + + + \ No newline at end of file diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/repl.txt new file mode 100644 index 000000000000..15c271f465fe --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/repl.txt @@ -0,0 +1,29 @@ + +{{alias}}( c ) + Returns the standard deviation of a Bradford distribution with shape + parameter `c`. + + If `c <= 0`, the function returns `NaN`. + + Parameters + ---------- + c: number + Shape parameter. + + Returns + ------- + out: number + Standard deviation. + + Examples + -------- + > var v = {{alias}}( 0.1 ) + ~0.289 + > v = {{alias}}( 0.5 ) + ~0.288 + > v = {{alias}}( 10.0 ) + ~0.276 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/types/index.d.ts new file mode 100644 index 000000000000..d691f2eafa69 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/types/index.d.ts @@ -0,0 +1,60 @@ +/* +* @license Apache-2.0 +* +* 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. +* 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 standard deviation of a Bradford distribution. +* +* ## Notes +* +* - If `c <= 0`, the function returns `NaN`. +* +* @param c - shape parameter +* @returns standard deviation +* +* @example +* var v = stdev( 0.1 ); +* // returns ~0.289 +* +* @example +* var v = stdev( 0.5 ); +* // returns ~0.288 +* +* @example +* var v = stdev( 10.0 ); +* // returns ~0.276 +* +* @example +* var v = stdev( 0.0 ); +* // returns NaN +* +* @example +* var v = stdev( -1.0 ); +* // returns NaN +* +* @example +* var v = stdev( NaN ); +* // returns NaN +*/ +declare function stdev( c: number ): number; + + +// EXPORTS // + +export = stdev; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/types/test.ts new file mode 100644 index 000000000000..db5a072932b7 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* 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. +* 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 stdev = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + stdev( 0.3 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + stdev( true ); // $ExpectError + stdev( false ); // $ExpectError + stdev( null ); // $ExpectError + stdev( undefined ); // $ExpectError + stdev( '5' ); // $ExpectError + stdev( [] ); // $ExpectError + stdev( {} ); // $ExpectError + stdev( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + stdev(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/examples/index.js new file mode 100644 index 000000000000..940a995824ce --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/examples/index.js @@ -0,0 +1,31 @@ +/** +* @license Apache-2.0 +* +* 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. +* 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 stdev = require( './../lib' ); + +var c = uniform( 10, 0.1, 10.0 ); + +var v; +var i; +for ( i = 0; i < c.length; i++ ) { + v = stdev( c[ i ] ); + console.log( 'c: %d, SD(X;c): %d', c[ i ].toFixed( 4 ), v.toFixed( 4 ) ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/lib/index.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/lib/index.js new file mode 100644 index 000000000000..36bcf04ada56 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/lib/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* 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. +* 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'; + +/** +* Bradford distribution standard deviation. +* +* @module @stdlib/stats/base/dists/bradford/stdev +* +* @example +* var stdev = require( '@stdlib/stats/base/dists/bradford/stdev' ); +* +* var v = stdev( 0.1 ); +* // returns ~0.289 +* +* v = stdev( 10.0 ); +* // returns ~0.276 +*/ + +// MODULES // + +var stdev = require( './main.js' ); + + +// EXPORTS // + +module.exports = stdev; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/lib/main.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/lib/main.js new file mode 100644 index 000000000000..ceaa668952eb --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/lib/main.js @@ -0,0 +1,75 @@ +/** +* @license Apache-2.0 +* +* 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. +* 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 ln = require( '@stdlib/math/base/special/ln' ); +var sqrt = require( '@stdlib/math/base/special/sqrt' ); + + +// MAIN // + +/** +* Returns the standard deviation of a Bradford distribution. +* +* @param {PositiveNumber} c - shape parameter +* @returns {PositiveNumber} standard deviation +* +* @example +* var v = stdev( 0.1 ); +* // returns ~0.289 +* +* @example +* var v = stdev( 0.5 ); +* // returns ~0.288 +* +* @example +* var v = stdev( 10.0 ); +* // returns ~0.276 +* +* @example +* var v = stdev( 0.0 ); +* // returns NaN +* +* @example +* var v = stdev( -1.0 ); +* // returns NaN +* +* @example +* var v = stdev( NaN ); +* // returns NaN +*/ +function stdev( c ) { + var k; + if ( + isnan( c ) || + c <= 0.0 + ) { + return NaN; + } + k = ln( 1.0 + c ); + return sqrt( ( ( ( 2.0+c ) * k ) - ( 2.0*c ) ) / ( 2.0*c*k*k ) ); +} + + +// EXPORTS // + +module.exports = stdev; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/package.json b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/package.json new file mode 100644 index 000000000000..8c80b8661a56 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/package.json @@ -0,0 +1,72 @@ +{ + "name": "@stdlib/stats/base/dists/bradford/stdev", + "version": "0.0.0", + "description": "Bradford distribution standard deviation.", + "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", + "bradford", + "bradford-distribution", + "parameter", + "shape-parameter", + "continuous", + "skewed", + "standard", + "deviation", + "stdev", + "std", + "dispersion", + "spread", + "univariate" + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/large_c.json b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/large_c.json new file mode 100644 index 000000000000..5bd2832e3978 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/large_c.json @@ -0,0 +1 @@ +{"c": [1.0, 1.009009009009009, 1.018018018018018, 1.027027027027027, 1.0360360360360361, 1.045045045045045, 1.054054054054054, 1.063063063063063, 1.072072072072072, 1.0810810810810811, 1.09009009009009, 1.0990990990990992, 1.1081081081081081, 1.117117117117117, 1.1261261261261262, 1.135135135135135, 1.1441441441441442, 1.1531531531531531, 1.1621621621621623, 1.1711711711711712, 1.1801801801801801, 1.1891891891891893, 1.1981981981981982, 1.2072072072072073, 1.2162162162162162, 1.2252252252252251, 1.2342342342342343, 1.2432432432432432, 1.2522522522522523, 1.2612612612612613, 1.2702702702702702, 1.2792792792792793, 1.2882882882882882, 1.2972972972972974, 1.3063063063063063, 1.3153153153153152, 1.3243243243243243, 1.3333333333333333, 1.3423423423423424, 1.3513513513513513, 1.3603603603603602, 1.3693693693693694, 1.3783783783783785, 1.3873873873873874, 1.3963963963963963, 1.4054054054054055, 1.4144144144144144, 1.4234234234234235, 1.4324324324324325, 1.4414414414414414, 1.4504504504504505, 1.4594594594594594, 1.4684684684684686, 1.4774774774774775, 1.4864864864864864, 1.4954954954954955, 1.5045045045045045, 1.5135135135135136, 1.5225225225225225, 1.5315315315315314, 1.5405405405405406, 1.5495495495495497, 1.5585585585585586, 1.5675675675675675, 1.5765765765765765, 1.5855855855855856, 1.5945945945945947, 1.6036036036036037, 1.6126126126126126, 1.6216216216216215, 1.6306306306306306, 1.6396396396396398, 1.6486486486486487, 1.6576576576576576, 1.6666666666666665, 1.6756756756756757, 1.6846846846846848, 1.6936936936936937, 1.7027027027027026, 1.7117117117117115, 1.7207207207207207, 1.7297297297297298, 1.7387387387387387, 1.7477477477477477, 1.7567567567567568, 1.7657657657657657, 1.7747747747747749, 1.7837837837837838, 1.7927927927927927, 1.8018018018018018, 1.810810810810811, 1.8198198198198199, 1.8288288288288288, 1.8378378378378377, 1.8468468468468469, 1.855855855855856, 1.864864864864865, 1.8738738738738738, 1.8828828828828827, 1.8918918918918919, 1.900900900900901, 1.90990990990991, 1.9189189189189189, 1.9279279279279278, 1.936936936936937, 1.945945945945946, 1.954954954954955, 1.9639639639639639, 1.9729729729729728, 1.981981981981982, 1.990990990990991, 2.0, 2.009009009009009, 2.018018018018018, 2.027027027027027, 2.036036036036036, 2.045045045045045, 2.054054054054054, 2.063063063063063, 2.0720720720720722, 2.081081081081081, 2.09009009009009, 2.0990990990990994, 2.108108108108108, 2.1171171171171173, 2.126126126126126, 2.135135135135135, 2.1441441441441444, 2.153153153153153, 2.1621621621621623, 2.171171171171171, 2.18018018018018, 2.1891891891891895, 2.198198198198198, 2.2072072072072073, 2.2162162162162162, 2.225225225225225, 2.2342342342342345, 2.243243243243243, 2.2522522522522523, 2.2612612612612613, 2.27027027027027, 2.2792792792792795, 2.288288288288288, 2.2972972972972974, 2.3063063063063063, 2.315315315315315, 2.3243243243243246, 2.333333333333333, 2.3423423423423424, 2.3513513513513513, 2.3603603603603602, 2.3693693693693696, 2.378378378378378, 2.3873873873873874, 2.3963963963963963, 2.4054054054054053, 2.4144144144144146, 2.423423423423423, 2.4324324324324325, 2.4414414414414414, 2.4504504504504503, 2.4594594594594597, 2.468468468468468, 2.4774774774774775, 2.4864864864864864, 2.4954954954954953, 2.5045045045045047, 2.5135135135135136, 2.5225225225225225, 2.5315315315315314, 2.5405405405405403, 2.5495495495495497, 2.5585585585585586, 2.5675675675675675, 2.5765765765765765, 2.5855855855855854, 2.5945945945945947, 2.6036036036036037, 2.6126126126126126, 2.621621621621622, 2.6306306306306304, 2.6396396396396398, 2.6486486486486487, 2.6576576576576576, 2.666666666666667, 2.6756756756756754, 2.684684684684685, 2.6936936936936937, 2.7027027027027026, 2.711711711711712, 2.7207207207207205, 2.72972972972973, 2.7387387387387387, 2.7477477477477477, 2.756756756756757, 2.7657657657657655, 2.774774774774775, 2.7837837837837838, 2.7927927927927927, 2.801801801801802, 2.8108108108108105, 2.81981981981982, 2.828828828828829, 2.8378378378378377, 2.846846846846847, 2.8558558558558556, 2.864864864864865, 2.873873873873874, 2.8828828828828827, 2.891891891891892, 2.9009009009009006, 2.90990990990991, 2.918918918918919, 2.9279279279279278, 2.936936936936937, 2.9459459459459456, 2.954954954954955, 2.963963963963964, 2.972972972972973, 2.981981981981982, 2.990990990990991, 3.0, 3.009009009009009, 3.018018018018018, 3.027027027027027, 3.036036036036036, 3.045045045045045, 3.054054054054054, 3.063063063063063, 3.0720720720720722, 3.081081081081081, 3.09009009009009, 3.099099099099099, 3.108108108108108, 3.1171171171171173, 3.126126126126126, 3.135135135135135, 3.144144144144144, 3.153153153153153, 3.1621621621621623, 3.171171171171171, 3.18018018018018, 3.189189189189189, 3.1981981981981984, 3.2072072072072073, 3.2162162162162162, 3.225225225225225, 3.234234234234234, 3.2432432432432434, 3.2522522522522523, 3.2612612612612613, 3.27027027027027, 3.279279279279279, 3.2882882882882885, 3.2972972972972974, 3.3063063063063063, 3.315315315315315, 3.324324324324324, 3.3333333333333335, 3.3423423423423424, 3.3513513513513513, 3.3603603603603602, 3.369369369369369, 3.3783783783783785, 3.3873873873873874, 3.3963963963963963, 3.4054054054054053, 3.414414414414414, 3.4234234234234235, 3.4324324324324325, 3.4414414414414414, 3.4504504504504503, 3.4594594594594597, 3.4684684684684686, 3.4774774774774775, 3.4864864864864864, 3.4954954954954953, 3.5045045045045047, 3.5135135135135136, 3.5225225225225225, 3.5315315315315314, 3.5405405405405403, 3.5495495495495497, 3.5585585585585586, 3.5675675675675675, 3.5765765765765765, 3.5855855855855854, 3.5945945945945947, 3.6036036036036037, 3.6126126126126126, 3.6216216216216215, 3.6306306306306304, 3.6396396396396398, 3.6486486486486487, 3.6576576576576576, 3.6666666666666665, 3.6756756756756754, 3.684684684684685, 3.6936936936936937, 3.7027027027027026, 3.7117117117117115, 3.720720720720721, 3.72972972972973, 3.7387387387387387, 3.7477477477477477, 3.7567567567567566, 3.765765765765766, 3.774774774774775, 3.7837837837837838, 3.7927927927927927, 3.8018018018018016, 3.810810810810811, 3.81981981981982, 3.828828828828829, 3.8378378378378377, 3.8468468468468466, 3.855855855855856, 3.864864864864865, 3.873873873873874, 3.8828828828828827, 3.8918918918918917, 3.900900900900901, 3.90990990990991, 3.918918918918919, 3.9279279279279278, 3.9369369369369367, 3.945945945945946, 3.954954954954955, 3.963963963963964, 3.972972972972973, 3.981981981981982, 3.990990990990991, 4.0, 4.009009009009009, 4.018018018018018, 4.027027027027027, 4.036036036036036, 4.045045045045045, 4.054054054054054, 4.063063063063063, 4.072072072072072, 4.081081081081081, 4.09009009009009, 4.099099099099099, 4.108108108108108, 4.117117117117117, 4.126126126126126, 4.135135135135135, 4.1441441441441444, 4.153153153153153, 4.162162162162162, 4.171171171171171, 4.18018018018018, 4.1891891891891895, 4.198198198198198, 4.207207207207207, 4.216216216216216, 4.225225225225225, 4.2342342342342345, 4.243243243243244, 4.252252252252252, 4.261261261261261, 4.27027027027027, 4.2792792792792795, 4.288288288288289, 4.297297297297297, 4.306306306306306, 4.315315315315315, 4.324324324324325, 4.333333333333334, 4.342342342342342, 4.351351351351351, 4.36036036036036, 4.36936936936937, 4.378378378378379, 4.387387387387387, 4.396396396396396, 4.405405405405405, 4.414414414414415, 4.423423423423424, 4.4324324324324325, 4.441441441441441, 4.45045045045045, 4.45945945945946, 4.468468468468469, 4.4774774774774775, 4.486486486486486, 4.495495495495495, 4.504504504504505, 4.513513513513514, 4.5225225225225225, 4.531531531531531, 4.54054054054054, 4.54954954954955, 4.558558558558559, 4.5675675675675675, 4.576576576576576, 4.585585585585585, 4.594594594594595, 4.603603603603604, 4.612612612612613, 4.621621621621621, 4.63063063063063, 4.63963963963964, 4.648648648648649, 4.657657657657658, 4.666666666666666, 4.675675675675675, 4.684684684684685, 4.693693693693694, 4.702702702702703, 4.711711711711711, 4.7207207207207205, 4.72972972972973, 4.738738738738739, 4.747747747747748, 4.756756756756756, 4.7657657657657655, 4.774774774774775, 4.783783783783784, 4.792792792792793, 4.801801801801801, 4.8108108108108105, 4.81981981981982, 4.828828828828829, 4.837837837837838, 4.846846846846846, 4.8558558558558556, 4.864864864864865, 4.873873873873874, 4.882882882882883, 4.891891891891891, 4.900900900900901, 4.90990990990991, 4.918918918918919, 4.927927927927928, 4.936936936936936, 4.945945945945946, 4.954954954954955, 4.963963963963964, 4.972972972972973, 4.981981981981982, 4.990990990990991, 5.0, 5.009009009009009, 5.018018018018018, 5.027027027027027, 5.036036036036036, 5.045045045045045, 5.054054054054054, 5.063063063063063, 5.072072072072072, 5.081081081081081, 5.09009009009009, 5.099099099099099, 5.108108108108108, 5.117117117117117, 5.126126126126126, 5.135135135135135, 5.1441441441441444, 5.153153153153153, 5.162162162162162, 5.171171171171171, 5.18018018018018, 5.1891891891891895, 5.198198198198198, 5.207207207207207, 5.216216216216216, 5.225225225225225, 5.2342342342342345, 5.243243243243243, 5.252252252252252, 5.261261261261261, 5.27027027027027, 5.2792792792792795, 5.288288288288288, 5.297297297297297, 5.306306306306306, 5.315315315315315, 5.324324324324325, 5.333333333333333, 5.342342342342342, 5.351351351351351, 5.36036036036036, 5.36936936936937, 5.378378378378378, 5.387387387387387, 5.396396396396397, 5.405405405405405, 5.414414414414415, 5.423423423423423, 5.4324324324324325, 5.441441441441442, 5.45045045045045, 5.45945945945946, 5.468468468468468, 5.4774774774774775, 5.486486486486487, 5.495495495495495, 5.504504504504505, 5.513513513513513, 5.5225225225225225, 5.531531531531532, 5.54054054054054, 5.54954954954955, 5.558558558558558, 5.5675675675675675, 5.576576576576577, 5.585585585585585, 5.594594594594595, 5.603603603603603, 5.612612612612613, 5.621621621621622, 5.63063063063063, 5.63963963963964, 5.648648648648648, 5.657657657657658, 5.666666666666667, 5.675675675675675, 5.684684684684685, 5.693693693693693, 5.702702702702703, 5.711711711711712, 5.7207207207207205, 5.72972972972973, 5.738738738738738, 5.747747747747748, 5.756756756756757, 5.7657657657657655, 5.774774774774775, 5.783783783783783, 5.792792792792793, 5.801801801801802, 5.8108108108108105, 5.81981981981982, 5.828828828828828, 5.837837837837838, 5.846846846846847, 5.8558558558558556, 5.864864864864865, 5.873873873873874, 5.882882882882883, 5.891891891891892, 5.900900900900901, 5.90990990990991, 5.918918918918919, 5.927927927927928, 5.936936936936937, 5.945945945945946, 5.954954954954955, 5.963963963963964, 5.972972972972973, 5.981981981981982, 5.990990990990991, 6.0, 6.009009009009009, 6.018018018018018, 6.027027027027027, 6.036036036036036, 6.045045045045045, 6.054054054054054, 6.063063063063063, 6.072072072072072, 6.081081081081081, 6.09009009009009, 6.099099099099099, 6.108108108108108, 6.117117117117117, 6.126126126126126, 6.135135135135135, 6.1441441441441444, 6.153153153153153, 6.162162162162162, 6.171171171171171, 6.18018018018018, 6.1891891891891895, 6.198198198198198, 6.207207207207207, 6.216216216216216, 6.225225225225225, 6.2342342342342345, 6.243243243243243, 6.252252252252252, 6.261261261261261, 6.27027027027027, 6.2792792792792795, 6.288288288288288, 6.297297297297297, 6.306306306306306, 6.315315315315315, 6.324324324324325, 6.333333333333333, 6.342342342342342, 6.351351351351351, 6.36036036036036, 6.36936936936937, 6.378378378378378, 6.387387387387387, 6.396396396396397, 6.405405405405405, 6.414414414414415, 6.423423423423423, 6.4324324324324325, 6.441441441441442, 6.45045045045045, 6.45945945945946, 6.468468468468468, 6.4774774774774775, 6.486486486486487, 6.495495495495495, 6.504504504504505, 6.513513513513513, 6.5225225225225225, 6.531531531531532, 6.54054054054054, 6.54954954954955, 6.558558558558558, 6.5675675675675675, 6.576576576576577, 6.585585585585585, 6.594594594594595, 6.603603603603603, 6.612612612612613, 6.621621621621622, 6.63063063063063, 6.63963963963964, 6.648648648648648, 6.657657657657658, 6.666666666666667, 6.675675675675675, 6.684684684684685, 6.693693693693693, 6.702702702702703, 6.711711711711712, 6.7207207207207205, 6.72972972972973, 6.738738738738738, 6.747747747747748, 6.756756756756757, 6.7657657657657655, 6.774774774774775, 6.783783783783783, 6.792792792792793, 6.801801801801802, 6.8108108108108105, 6.81981981981982, 6.828828828828828, 6.837837837837838, 6.846846846846847, 6.8558558558558556, 6.864864864864865, 6.873873873873873, 6.882882882882883, 6.891891891891892, 6.900900900900901, 6.90990990990991, 6.918918918918919, 6.927927927927928, 6.936936936936937, 6.945945945945946, 6.954954954954955, 6.963963963963964, 6.972972972972973, 6.981981981981982, 6.990990990990991, 7.0, 7.009009009009009, 7.018018018018018, 7.027027027027027, 7.036036036036036, 7.045045045045045, 7.054054054054054, 7.063063063063063, 7.072072072072072, 7.081081081081081, 7.09009009009009, 7.099099099099099, 7.108108108108108, 7.117117117117117, 7.126126126126126, 7.135135135135135, 7.1441441441441444, 7.153153153153153, 7.162162162162162, 7.171171171171171, 7.18018018018018, 7.1891891891891895, 7.198198198198198, 7.207207207207207, 7.216216216216216, 7.225225225225225, 7.2342342342342345, 7.243243243243243, 7.252252252252252, 7.261261261261261, 7.27027027027027, 7.2792792792792795, 7.288288288288288, 7.297297297297297, 7.306306306306306, 7.315315315315315, 7.324324324324325, 7.333333333333333, 7.342342342342342, 7.351351351351351, 7.36036036036036, 7.36936936936937, 7.378378378378378, 7.387387387387387, 7.396396396396396, 7.405405405405405, 7.414414414414415, 7.423423423423423, 7.4324324324324325, 7.441441441441442, 7.45045045045045, 7.45945945945946, 7.468468468468468, 7.4774774774774775, 7.486486486486487, 7.495495495495495, 7.504504504504505, 7.513513513513513, 7.5225225225225225, 7.531531531531532, 7.54054054054054, 7.54954954954955, 7.558558558558558, 7.5675675675675675, 7.576576576576577, 7.585585585585585, 7.594594594594595, 7.603603603603603, 7.612612612612613, 7.621621621621622, 7.63063063063063, 7.63963963963964, 7.648648648648648, 7.657657657657658, 7.666666666666667, 7.675675675675675, 7.684684684684685, 7.693693693693693, 7.702702702702703, 7.711711711711712, 7.7207207207207205, 7.72972972972973, 7.738738738738738, 7.747747747747748, 7.756756756756757, 7.7657657657657655, 7.774774774774775, 7.783783783783783, 7.792792792792793, 7.801801801801802, 7.8108108108108105, 7.81981981981982, 7.828828828828828, 7.837837837837838, 7.846846846846847, 7.8558558558558556, 7.864864864864865, 7.873873873873873, 7.882882882882883, 7.891891891891892, 7.900900900900901, 7.90990990990991, 7.918918918918919, 7.927927927927928, 7.936936936936937, 7.945945945945946, 7.954954954954955, 7.963963963963964, 7.972972972972973, 7.981981981981982, 7.990990990990991, 8.0, 8.00900900900901, 8.018018018018019, 8.027027027027028, 8.036036036036036, 8.045045045045045, 8.054054054054054, 8.063063063063062, 8.072072072072071, 8.08108108108108, 8.09009009009009, 8.0990990990991, 8.108108108108109, 8.117117117117118, 8.126126126126126, 8.135135135135135, 8.144144144144144, 8.153153153153152, 8.162162162162161, 8.17117117117117, 8.18018018018018, 8.18918918918919, 8.198198198198199, 8.207207207207208, 8.216216216216216, 8.225225225225225, 8.234234234234235, 8.243243243243242, 8.252252252252251, 8.26126126126126, 8.27027027027027, 8.27927927927928, 8.288288288288289, 8.297297297297298, 8.306306306306306, 8.315315315315315, 8.324324324324325, 8.333333333333332, 8.342342342342342, 8.35135135135135, 8.36036036036036, 8.36936936936937, 8.378378378378379, 8.387387387387388, 8.396396396396396, 8.405405405405405, 8.414414414414415, 8.423423423423422, 8.432432432432432, 8.441441441441441, 8.45045045045045, 8.45945945945946, 8.468468468468469, 8.477477477477478, 8.486486486486488, 8.495495495495495, 8.504504504504505, 8.513513513513512, 8.522522522522522, 8.531531531531531, 8.54054054054054, 8.54954954954955, 8.558558558558559, 8.567567567567568, 8.576576576576578, 8.585585585585585, 8.594594594594595, 8.603603603603602, 8.612612612612612, 8.621621621621621, 8.63063063063063, 8.63963963963964, 8.64864864864865, 8.657657657657658, 8.666666666666668, 8.675675675675675, 8.684684684684685, 8.693693693693692, 8.702702702702702, 8.711711711711711, 8.72072072072072, 8.72972972972973, 8.73873873873874, 8.747747747747749, 8.756756756756758, 8.765765765765765, 8.774774774774775, 8.783783783783782, 8.792792792792792, 8.801801801801801, 8.81081081081081, 8.81981981981982, 8.82882882882883, 8.837837837837839, 8.846846846846848, 8.855855855855856, 8.864864864864865, 8.873873873873872, 8.882882882882882, 8.891891891891891, 8.9009009009009, 8.90990990990991, 8.91891891891892, 8.927927927927929, 8.936936936936938, 8.945945945945946, 8.954954954954955, 8.963963963963964, 8.972972972972972, 8.981981981981981, 8.99099099099099, 9.0, 9.00900900900901, 9.018018018018019, 9.027027027027026, 9.036036036036036, 9.045045045045045, 9.054054054054054, 9.063063063063064, 9.072072072072071, 9.08108108108108, 9.09009009009009, 9.0990990990991, 9.108108108108109, 9.117117117117116, 9.126126126126126, 9.135135135135135, 9.144144144144144, 9.153153153153154, 9.162162162162161, 9.17117117117117, 9.18018018018018, 9.18918918918919, 9.198198198198199, 9.207207207207206, 9.216216216216216, 9.225225225225225, 9.234234234234235, 9.243243243243244, 9.252252252252251, 9.26126126126126, 9.27027027027027, 9.27927927927928, 9.288288288288289, 9.297297297297296, 9.306306306306306, 9.315315315315315, 9.324324324324325, 9.333333333333334, 9.342342342342342, 9.35135135135135, 9.36036036036036, 9.36936936936937, 9.378378378378379, 9.387387387387387, 9.396396396396396, 9.405405405405405, 9.414414414414415, 9.423423423423424, 9.432432432432432, 9.441441441441441, 9.45045045045045, 9.45945945945946, 9.468468468468469, 9.477477477477477, 9.486486486486486, 9.495495495495495, 9.504504504504505, 9.513513513513514, 9.522522522522522, 9.531531531531531, 9.54054054054054, 9.54954954954955, 9.558558558558559, 9.567567567567567, 9.576576576576576, 9.585585585585585, 9.594594594594595, 9.603603603603604, 9.612612612612612, 9.621621621621621, 9.63063063063063, 9.63963963963964, 9.64864864864865, 9.657657657657657, 9.666666666666666, 9.675675675675675, 9.684684684684685, 9.693693693693694, 9.702702702702702, 9.711711711711711, 9.72072072072072, 9.72972972972973, 9.73873873873874, 9.747747747747749, 9.756756756756756, 9.765765765765765, 9.774774774774775, 9.783783783783784, 9.792792792792794, 9.801801801801801, 9.81081081081081, 9.81981981981982, 9.82882882882883, 9.837837837837839, 9.846846846846846, 9.855855855855856, 9.864864864864865, 9.873873873873874, 9.882882882882884, 9.891891891891891, 9.9009009009009, 9.90990990990991, 9.91891891891892, 9.927927927927929, 9.936936936936936, 9.945945945945946, 9.954954954954955, 9.963963963963964, 9.972972972972974, 9.981981981981981, 9.99099099099099, 10.0], "expected": [0.28753013812092315, 0.28751538234330715, 0.287500601445734, 0.2874857961240052, 0.28747096706055925, 0.28745611492477496, 0.2874412403732417, 0.2874263440500332, 0.2874114265869812, 0.287396488603918, 0.2873815307089499, 0.2873665534986904, 0.28735155755850234, 0.28733654346274407, 0.2873215117749804, 0.2873064630482252, 0.28729139782514634, 0.28727631663828457, 0.2872612200102639, 0.28724610845399007, 0.2872309824728508, 0.28721584256091204, 0.2872006892031016, 0.28718552287540366, 0.2871703440450261, 0.28715515317058976, 0.2871399507022932, 0.2871247370820798, 0.2871095127438114, 0.2870942781134174, 0.2870790336090595, 0.2870637796412835, 0.287048516613166, 0.28703324492046745, 0.2870179649517697, 0.2870026770886165, 0.28698738170565513, 0.28697207917076345, 0.2869567698451895, 0.28694145408367056, 0.28692613223456387, 0.2869108046399671, 0.28689547163583884, 0.28688013355211633, 0.2868647907128283, 0.28684944343620783, 0.2868340920348048, 0.28681873681558656, 0.2868033780800509, 0.28678801612432225, 0.28677265123925716, 0.2867572837105404, 0.28674191381877884, 0.2867265418396019, 0.28671116804374785, 0.2866957926971585, 0.2866804160610656, 0.2866650383920754, 0.2866496599422591, 0.2866342809592311, 0.28661890168623094, 0.28660352236220626, 0.286588143221886, 0.2865727644958605, 0.2865573864106546, 0.2865420091888013, 0.2865266330489151, 0.2865112582057586, 0.28649588487031574, 0.28648051324985646, 0.28646514354800345, 0.2864497759647995, 0.28643441069676634, 0.28641904793697054, 0.286403687875084, 0.28638833069744246, 0.2863729765871062, 0.28635762572391543, 0.2863422782845475, 0.2863269344425729, 0.28631159436850784, 0.2862962582298699, 0.2862809261912264, 0.2862655984142493, 0.28625027505776257, 0.28623495627779194, 0.28621964222761526, 0.2862043330578057, 0.2861890289162815, 0.28617372994834983, 0.2861584362967513, 0.28614314810170455, 0.28612786550094926, 0.2861125886297865, 0.286097317621122, 0.28608205260550496, 0.2860667937111704, 0.28605154106407416, 0.286036294787936, 0.2860210550042728, 0.2860058218324374, 0.2859905953896562, 0.28597537579106136, 0.2859601631497288, 0.28594495757670985, 0.28592975918106656, 0.285914568069905, 0.285899384348406, 0.2858842081198571, 0.2858690394856858, 0.28585387854548755, 0.28583872539705746, 0.28582358013641984, 0.28580844285785595, 0.2857933136539339, 0.285778192615536, 0.28576307983188676, 0.2857479753905776, 0.2857328793775971, 0.2857177918773539, 0.28570271297270383, 0.2856876427449745, 0.2856725812739902, 0.2856575286380956, 0.28564248491418043, 0.28562745017770225, 0.28561242450270957, 0.2855974079618642, 0.2855824006264639, 0.285567402566464, 0.28555241385049884, 0.2855374345459029, 0.2855224647187302, 0.2855075044337774, 0.2854925537546012, 0.2854776127435392, 0.28546268146172854, 0.28544775996912614, 0.28543284832452503, 0.285417946585576, 0.28540305480880174, 0.2853881730496184, 0.28537330136234995, 0.28535843980024655, 0.28534358841550184, 0.2853287472592682, 0.2853139163816754, 0.2852990958318432, 0.2852842856578994, 0.28526948590699513, 0.28525469662531916, 0.2852399178581144, 0.28522514964969053, 0.2852103920434395, 0.2851956450818512, 0.2851809088065239, 0.28516618325818216, 0.2851514684766871, 0.28513676450105135, 0.2851220713694518, 0.28510738911924216, 0.28509271778696643, 0.2850780574083706, 0.2850634080184147, 0.2850487696512857, 0.2850341423404092, 0.2850195261184609, 0.2850049210173773, 0.28499032706836885, 0.28497574430192857, 0.28496117274784616, 0.284946612435216, 0.28493206339244886, 0.2849175256472824, 0.284902999226791, 0.28488848415739626, 0.28487398046487733, 0.28485948817437917, 0.2848450073104238, 0.2848305378969188, 0.2848160799571673, 0.2848016335138766, 0.2847871985891672, 0.2847727752045826, 0.2847583633810964, 0.28474396313912265, 0.2847295744985232, 0.2847151974786161, 0.2847008320981849, 0.28468647837548494, 0.2846721363282533, 0.28465780597371476, 0.2846434873285911, 0.2846291804091077, 0.2846148852310012, 0.2846006018095273, 0.28458633015946766, 0.28457207029513654, 0.28455782223038945, 0.284543585978628, 0.2845293615528081, 0.2845151489654469, 0.28450094822862737, 0.28448675935400797, 0.28447258235282574, 0.28445841723590554, 0.2844442640136643, 0.2844301226961175, 0.2844159932928865, 0.28440187581320214, 0.28438777026591316, 0.28437367665949026, 0.28435959500203206, 0.2843455253012711, 0.2843314675645792, 0.2843174217989727, 0.2843033880111181, 0.28428936620733686, 0.28427535639361157, 0.2842613585755894, 0.2842473727585887, 0.2842333989476036, 0.28421943714730846, 0.28420548736206275, 0.28419154959591564, 0.28417762385261214, 0.28416371013559516, 0.28414980844801274, 0.28413591879272027, 0.2841220411722857, 0.2841081755889949, 0.2840943220448547, 0.28408048054159746, 0.2840666510806851, 0.284052833663313, 0.28403902829041494, 0.28402523496266646, 0.28401145368048863, 0.28399768444405205, 0.28398392725328037, 0.2839701821078551, 0.28395644900721784, 0.28394272795057557, 0.28392901893690214, 0.28391532196494346, 0.2839016370332207, 0.2838879641400335, 0.2838743032834635, 0.2838606544613769, 0.28384701767142906, 0.2838333929110667, 0.2838197801775316, 0.28380617946786435, 0.2837925907789055, 0.28377901410730044, 0.2837654494495018, 0.2837518968017728, 0.2837383561601897, 0.2837248275206444, 0.28371131087884804, 0.2836978062303334, 0.2836843135704579, 0.28367083289440675, 0.2836573641971938, 0.28364390747366625, 0.2836304627185066, 0.2836170299262347, 0.28360360909121135, 0.28359020020763975, 0.2835768032695683, 0.2835634182708929, 0.2835500452053605, 0.28353668406657, 0.28352333484797515, 0.28350999754288686, 0.28349667214447494, 0.283483358645772, 0.28347005703967415, 0.28345676731894265, 0.28344348947620807, 0.2834302235039702, 0.2834169693946025, 0.283403727140352, 0.28339049673334277, 0.2833772781655766, 0.2833640714289361, 0.2833508765151866, 0.2833376934159779, 0.28332452212284515, 0.2833113626272125, 0.2832982149203931, 0.2832850789935927, 0.28327195483791046, 0.28325884244434013, 0.2832457418037735, 0.2832326529070002, 0.283219575744711, 0.2832065103074987, 0.28319345658585926, 0.2831804145701948, 0.2831673842508141, 0.28315436561793444, 0.2831413586616835, 0.28312836337210057, 0.2831153797391377, 0.28310240775266204, 0.2830894474024571, 0.2830764986782237, 0.2830635615695819, 0.2830506360660719, 0.28303772215715567, 0.28302481983221917, 0.2830119290805726, 0.2829990498914517, 0.2829861822540201, 0.2829733261573693, 0.2829604815905213, 0.282947648542429, 0.28293482700197753, 0.2829220169579861, 0.2829092183992078, 0.2828964313143324, 0.2828836556919874, 0.28287089152073774, 0.2828581387890882, 0.282845397485484, 0.2828326675983128, 0.28281994911590463, 0.2828072420265338, 0.28279454631841944, 0.2827818619797266, 0.28276918899856796, 0.2827565273630044, 0.2827438770610457, 0.28273123808065215, 0.2827186104097348, 0.28270599403615765, 0.28269338894773693, 0.28268079513224387, 0.2826682125774043, 0.2826556412709001, 0.28264308120036996, 0.28263053235341046, 0.282617994717577, 0.2826054682803842, 0.2825929530293072, 0.2825804489517829, 0.2825679560352096, 0.2825554742669492, 0.2825430036343267, 0.28253054412463224, 0.28251809572512127, 0.28250565842301495, 0.28249323220550193, 0.2824808170597383, 0.2824684129728487, 0.28245601993192676, 0.28244363792403643, 0.2824312669362119, 0.28241890695545896, 0.2824065579687558, 0.2823942199630527, 0.282381892925274, 0.2823695768423178, 0.2823572717010573, 0.28234497748834103, 0.2823326941909936, 0.28232042179581646, 0.28230816028958844, 0.2822959096590665, 0.28228366989098597, 0.28227144097206164, 0.2822592228889879, 0.28224701562844007, 0.282234819177074, 0.28222263352152743, 0.2822104586484198, 0.28219829454435374, 0.28218614119591506, 0.28217399858967324, 0.2821618667121823, 0.28214974554998085, 0.28213763508959316, 0.28212553531752915, 0.2821134462202855, 0.2821013677843457, 0.2820892999961804, 0.28207724284224844, 0.2820651963089971, 0.2820531603828622, 0.28204113505026907, 0.28202912029763294, 0.28201711611135916, 0.28200512247784365, 0.28199313938347376, 0.28198116681462815, 0.2819692047576777, 0.28195725319898557, 0.2819453121249077, 0.2819333815217935, 0.2819214613759859, 0.28190955167382187, 0.2818976524016331, 0.2818857635457456, 0.28187388509248135, 0.2818620170281574, 0.281850159339087, 0.28183831201157966, 0.2818264750319416, 0.28181464838647646, 0.28180283206148476, 0.2817910260432655, 0.28177923031811514, 0.28176744487232896, 0.2817556696922011, 0.2817439047640247, 0.2817321500740924, 0.2817204056086967, 0.2817086713541301, 0.2816969472966855, 0.28168523342265667, 0.2816735297183382, 0.2816618361700262, 0.2816501527640184, 0.28163847948661414, 0.2816268163241154, 0.2816151632628263, 0.2816035202890539, 0.2815918873891081, 0.28158026454930246, 0.2815686517559536, 0.28155704899538236, 0.28154545625391364, 0.2815338735178766, 0.2815223007736049, 0.2815107380074372, 0.28149918520571726, 0.281487642354794, 0.281476109441022, 0.28146458645076183, 0.28145307337037984, 0.2814415701862487, 0.28143007688474764, 0.28141859345226244, 0.281407119875186, 0.2813956561399182, 0.28138420223286653, 0.28137275814044543, 0.28136132384907786, 0.2813498993451944, 0.2813384846152334, 0.2813270796456424, 0.2813156844228767, 0.28130429893340075, 0.2812929231636881, 0.2812815571002208, 0.28127020072949066, 0.28125885403799894, 0.2812475170122564, 0.2812361896387837, 0.28122487190411144, 0.2812135637947805, 0.2812022652973418, 0.28119097639835716, 0.28117969708439877, 0.2811684273420496, 0.2811571671579038, 0.28114591651856635, 0.2811346754106538, 0.28112344382079396, 0.2811122217356262, 0.28110100914180153, 0.281089806025983, 0.28107861237484544, 0.281067428175076, 0.28105625341337387, 0.2810450880764509, 0.2810339321510311, 0.2810227856238515, 0.28101164848166177, 0.2810005207112244, 0.2809894022993148, 0.2809782932327219, 0.2809671934982477, 0.2809561030827075, 0.28094502197293003, 0.28093395015575795, 0.2809228876180474, 0.28091183434666833, 0.2809007903285046, 0.28088975555045437, 0.2808787299994297, 0.2808677136623568, 0.2808567065261766, 0.28084570857784413, 0.28083471980432917, 0.28082374019261597, 0.28081276972970365, 0.2808018084026059, 0.2807908561983517, 0.2807799131039848, 0.280768979106564, 0.28075805419316335, 0.2807471383508722, 0.2807362315667951, 0.28072533382805215, 0.28071444512177873, 0.2807035654351261, 0.280692694755261, 0.28068183306936595, 0.280670980364639, 0.2806601366282946, 0.28064930184756265, 0.28063847600968933, 0.28062765910193677, 0.28061685111158324, 0.2806060520259235, 0.2805952618322681, 0.2805844805179443, 0.28057370807029575, 0.2805629444766823, 0.2805521897244806, 0.28054144380108353, 0.2805307066939012, 0.2805199783903597, 0.28050925887790235, 0.2804985481439891, 0.28048784617609673, 0.2804771529617191, 0.2804664684883667, 0.2804557927435673, 0.2804451257148655, 0.2804344673898233, 0.28042381775601954, 0.2804131768010504, 0.2804025445125291, 0.28039192087808634, 0.2803813058853702, 0.2803706995220458, 0.280360101775796, 0.28034951263432073, 0.2803389320853376, 0.2803283601165818, 0.2803177967158059, 0.28030724187078015, 0.2802966955692924, 0.2802861577991479, 0.28027562854817, 0.28026510780419944, 0.28025459555509485, 0.28024409178873266, 0.28023359649300666, 0.28022310965582925, 0.28021263126513, 0.2802021613088567, 0.2801916997749748, 0.280181246651468, 0.2801708019263377, 0.2801603655876034, 0.2801499376233023, 0.28013951802149023, 0.2801291067702405, 0.28011870385764465, 0.2801083092718124, 0.2800979230008717, 0.28008754503296796, 0.2800771753562655, 0.2800668139589465, 0.2800564608292111, 0.2800461159552778, 0.2800357793253834, 0.28002545092778286, 0.2800151307507492, 0.280004818782574, 0.2799945150115668, 0.27998421942605534, 0.27997393201438586, 0.2799636527649231, 0.27995338166604944, 0.27994311870616595, 0.2799328638736922, 0.27992261715706585, 0.27991237854474277, 0.27990214802519753, 0.2798919255869227, 0.27988171121842936, 0.27987150490824686, 0.2798613066449231, 0.27985111641702404, 0.27984093421313405, 0.2798307600218563, 0.27982059383181185, 0.2798104356316403, 0.27980028540999974, 0.2797901431555666, 0.2797800088570355, 0.2797698825031195, 0.2797597640825503, 0.27974965358407766, 0.27973955099646997, 0.2797294563085136, 0.27971936950901394, 0.27970929058679406, 0.27969921953069615, 0.27968915632958, 0.2796791009723244, 0.27966905344782605, 0.27965901374500024, 0.27964898185278053, 0.27963895776011893, 0.2796289414559856, 0.2796189329293693, 0.27960893216927685, 0.2795989391647338, 0.2795889539047834, 0.27957897637848783, 0.2795690065749273, 0.27955904448320024, 0.27954909009242335, 0.2795391433917318, 0.27952920437027895, 0.2795192730172365, 0.27950934932179416, 0.2794994332731603, 0.27948952486056095, 0.27947962407324106, 0.279469730900463, 0.27945984533150814, 0.27944996735567523, 0.27944009696228195, 0.27943023414066354, 0.27942037888017396, 0.27941053117018483, 0.2794006910000861, 0.2793908583592859, 0.27938103323721036, 0.2793712156233036, 0.27936140550702815, 0.2793516028778642, 0.2793418077253102, 0.2793320200388826, 0.2793222398081159, 0.27931246702256246, 0.279302701671793, 0.2792929437453958, 0.2792831932329772, 0.27927345012416155, 0.2792637144085911, 0.2792539860759259, 0.27924426511584416, 0.27923455151804155, 0.2792248452722321, 0.2792151463681472, 0.27920545479553643, 0.279195770544167, 0.27918609360382385, 0.27917642396430975, 0.27916676161544535, 0.2791571065470688, 0.279147458749036, 0.2791378182112207, 0.2791281849235142, 0.27911855887582554, 0.2791089400580814, 0.2790993284602258, 0.2790897240722209, 0.2790801268840457, 0.2790705368856976, 0.27906095406719084, 0.2790513784185575, 0.2790418099298469, 0.27903224859112624, 0.27902269439248, 0.2790131473240099, 0.2790036073758353, 0.27899407453809294, 0.27898454880093665, 0.2789750301545379, 0.2789655185890855, 0.27895601409478543, 0.2789465166618608, 0.27893702628055245, 0.2789275429411179, 0.27891806663383223, 0.2789085973489878, 0.2788991350768939, 0.278889679807877, 0.27888023153228064, 0.27887079024046574, 0.27886135592281, 0.2788519285697081, 0.27884250817157225, 0.2788330947188313, 0.27882368820193104, 0.2788142886113344, 0.2788048959375213, 0.2787955101709882, 0.2787861313022488, 0.2787767593218336, 0.27876739422028973, 0.27875803598818144, 0.2787486846160896, 0.27873934009461204, 0.278730002414363, 0.2787206715659737, 0.2787113475400922, 0.2787020303273825, 0.27869271991852623, 0.278683416304221, 0.2786741194751812, 0.2786648294221376, 0.27865554613583793, 0.27864626960704625, 0.27863699982654283, 0.2786277367851249, 0.2786184804736059, 0.2786092308828154, 0.2785999880035998, 0.27859075182682186, 0.2785815223433603, 0.27857229954411056, 0.2785630834199841, 0.27855387396190884, 0.27854467116082887, 0.2785354750077044, 0.27852628549351205, 0.27851710260924445, 0.2785079263459103, 0.27849875669453455, 0.27848959364615816, 0.27848043719183807, 0.2784712873226474, 0.2784621440296755, 0.27845300730402717, 0.27844387713682345, 0.27843475351920133, 0.2784256364423138, 0.27841652589732935, 0.2784074218754327, 0.2783983243678243, 0.2783892333657201, 0.2783801488603522, 0.27837107084296847, 0.278361999304832, 0.27835293423722224, 0.27834387563143387, 0.2783348234787772, 0.27832577777057843, 0.278316738498179, 0.278307705652936, 0.2782986792262224, 0.2782896592094263, 0.2782806455939512, 0.2782716383712164, 0.27826263753265634, 0.27825364306972117, 0.278244654973876, 0.27823567323660164, 0.2782266978493939, 0.2782177288037641, 0.2782087660912388, 0.2781998097033596, 0.2781908596316836, 0.2781819158677829, 0.27817297840324484, 0.27816404722967186, 0.2781551223386815, 0.27814620372190624, 0.2781372913709937, 0.27812838527760664, 0.27811948543342263, 0.2781105918301343, 0.2781017044594493, 0.27809282331308993, 0.27808394838279354, 0.2780750796603126, 0.2780662171374139, 0.2780573608058793, 0.27804851065750535, 0.2780396666841035, 0.27803082887749986, 0.2780219972295352, 0.27801317173206475, 0.2780043523769588, 0.2779955391561019, 0.27798673206139346, 0.27797793108474733, 0.2779691362180916, 0.27796034745336956, 0.2779515647825383, 0.2779427881975696, 0.2779340176904498, 0.27792525325317946, 0.27791649487777353, 0.27790774255626144, 0.2778989962806868, 0.27789025604310763, 0.277881521835596, 0.2778727936502384, 0.27786407147913544, 0.27785535531440214, 0.27784664514816726, 0.2778379409725739, 0.27782924277977955, 0.2778205505619552, 0.2778118643112863, 0.2778031840199723, 0.27779450968022645, 0.2777858412842761, 0.27777717882436237, 0.2777685222927407, 0.2777598716816799, 0.2777512269834631, 0.277742588190387, 0.277733955294762, 0.2777253282889127, 0.277716707165177, 0.27770809191590684, 0.27769948253346766, 0.27769087901023887, 0.27768228133861295, 0.2776736895109967, 0.27766510351981005, 0.2776565233574867, 0.27764794901647377, 0.27763938048923203, 0.2776308177682356, 0.2776222608459721, 0.2776137097149427, 0.27760516436766186, 0.2775966247966574, 0.2775880909944707, 0.2775795629536562, 0.2775710406667819, 0.27756252412642884, 0.27755401332519153, 0.27754550825567753, 0.27753700891050775, 0.27752851528231615, 0.27752002736375, 0.27751154514746945, 0.2775030686261479, 0.2774945977924719, 0.27748613263914085, 0.2774776731588675, 0.2774692193443771, 0.27746077118840834, 0.27745232868371256, 0.27744389182305396, 0.2774354605992101, 0.2774270350049708, 0.27741861503313914, 0.277410200676531, 0.2774017919279746, 0.27739338878031156, 0.27738499122639587, 0.2773765992590942, 0.27736821287128605, 0.27735983205586345, 0.27735145680573126, 0.2773430871138068, 0.27733472297302, 0.2773263643763134, 0.27731801131664197, 0.2773096637869734, 0.2773013217802876, 0.277292985289577, 0.2772846543078467, 0.27727632882811404, 0.2772680088434085, 0.27725969434677245, 0.2772513853312601, 0.2772430817899383, 0.277234783715886, 0.2772264911021945, 0.2772182039419673, 0.2772099222283201, 0.27720164595438085, 0.27719337511328956, 0.2771851096981985, 0.27717684970227185, 0.27716859511868613, 0.2771603459406297, 0.27715210216130326, 0.2771438637739191, 0.2771356307717018, 0.27712740314788786, 0.2771191808957256, 0.2771109640084755, 0.2771027524794097, 0.27709454630181224, 0.27708634546897903, 0.277078149974218, 0.2770699598108485, 0.27706177497220186, 0.27705359545162117, 0.2770454212424613, 0.2770372523380886, 0.2770290887318814, 0.27702093041722936, 0.27701277738753394, 0.27700462963620825, 0.2769964871566769, 0.276988349942376, 0.2769802179867534, 0.27697209128326805, 0.27696396982539095, 0.2769558536066042, 0.2769477426204013, 0.2769396368602874, 0.27693153631977885, 0.27692344099240335, 0.2769153508717002, 0.2769072659512197, 0.27689918622452375, 0.2768911116851852, 0.27688304232678856, 0.27687497814292905, 0.2768669191272136, 0.27685886527326, 0.27685081657469734, 0.27684277302516574, 0.27683473461831665, 0.2768267013478123, 0.2768186732073263, 0.27681065019054296, 0.2768026322911579, 0.2767946195028778, 0.27678661181942016, 0.27677860923451314, 0.2767706117418964, 0.2767626193353201, 0.2767546320085455, 0.2767466497553447, 0.27673867256950047, 0.2767307004448066, 0.2767227333750676, 0.2767147713540988, 0.2767068143757261, 0.2766988624337865, 0.27669091552212716, 0.2766829736346065, 0.27667503676509325, 0.27666710490746693, 0.2766591780556175, 0.2766512562034458, 0.27664333934486307, 0.27663542747379094, 0.276627520584162, 0.27661961866991897, 0.27661172172501525, 0.2766038297434147, 0.2765959427190914, 0.27658806064603025, 0.2765801835182262, 0.2765723113296848, 0.27656444407442177, 0.27655658174646336, 0.276548724339846, 0.27654087184861653, 0.27653302426683185, 0.2765251815885595, 0.2765173438078768, 0.27650951091887144, 0.2765016829156416, 0.2764938597922952, 0.2764860415429504, 0.27647822816173584, 0.27647041964278973, 0.2764626159802608, 0.27645481716830755, 0.27644702320109865, 0.27643923407281284, 0.2764314497776387, 0.276423670309775, 0.2764158956634303, 0.27640812583282315, 0.276400360812182, 0.2763926005957452, 0.2763848451777611, 0.2763770945524877, 0.276369348714193, 0.2763616076571546, 0.2763538713756602, 0.276346139864007, 0.2763384131165022, 0.27633069112746256, 0.2763229738912145, 0.2763152614020943, 0.27630755365444787, 0.27629985064263063, 0.2762921523610079, 0.2762844588039543, 0.2762767699658544, 0.27626908584110194, 0.2762614064241005, 0.27625373170926315, 0.2762460616910124, 0.2762383963637803, 0.2762307357220083]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/runner.py new file mode 100644 index 000000000000..1587859d7b62 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/runner.py @@ -0,0 +1,76 @@ +#!/usr/bin/env python +# +# @license Apache-2.0 +# +# 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. +# 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 bradford + +# Get the file path: +FILE = os.path.realpath(__file__) + +# Extract the directory in which this file resides: +DIR = os.path.dirname(FILE) + + +def gen(x, name): + """Generate fixture data and write to file. + + # Arguments + + * `x`: domain + * `name::str`: output filename + + # Examples + + ``` python + python> x = linspace(0.1, 100, 2001) + python> gen(x, './data.json') + ``` + """ + y = bradford.std(x) + + # Store data to be written to file as a dictionary: + data = { + "c": x.tolist(), + "expected": y.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) + + +def main(): + """Generate fixture data.""" + # Small shape parameter: + c = np.linspace(0.1, 1, 1000) + gen(c, "small_c.json") + + # Large shape parameter: + c = np.linspace(1, 10, 1000) + gen(c, "large_c.json") + + +if __name__ == "__main__": + main() diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/small_c.json b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/small_c.json new file mode 100644 index 000000000000..cc7fa8b96c0a --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/fixtures/python/small_c.json @@ -0,0 +1 @@ +{"c": [0.1, 0.10090090090090091, 0.1018018018018018, 0.10270270270270271, 0.10360360360360361, 0.1045045045045045, 0.10540540540540541, 0.10630630630630632, 0.10720720720720721, 0.10810810810810811, 0.10900900900900902, 0.10990990990990991, 0.11081081081081082, 0.11171171171171172, 0.11261261261261261, 0.11351351351351352, 0.11441441441441443, 0.11531531531531532, 0.11621621621621622, 0.11711711711711711, 0.11801801801801802, 0.11891891891891893, 0.11981981981981982, 0.12072072072072072, 0.12162162162162163, 0.12252252252252252, 0.12342342342342343, 0.12432432432432433, 0.12522522522522522, 0.12612612612612614, 0.12702702702702703, 0.12792792792792793, 0.12882882882882885, 0.12972972972972974, 0.13063063063063063, 0.13153153153153152, 0.13243243243243244, 0.13333333333333333, 0.13423423423423425, 0.13513513513513514, 0.13603603603603603, 0.13693693693693693, 0.13783783783783785, 0.13873873873873874, 0.13963963963963966, 0.14054054054054055, 0.14144144144144144, 0.14234234234234233, 0.14324324324324325, 0.14414414414414414, 0.14504504504504506, 0.14594594594594595, 0.14684684684684685, 0.14774774774774774, 0.14864864864864866, 0.14954954954954955, 0.15045045045045047, 0.15135135135135136, 0.15225225225225225, 0.15315315315315314, 0.15405405405405406, 0.15495495495495495, 0.15585585585585587, 0.15675675675675677, 0.15765765765765766, 0.15855855855855855, 0.15945945945945947, 0.16036036036036036, 0.16126126126126128, 0.16216216216216217, 0.16306306306306306, 0.16396396396396395, 0.16486486486486487, 0.16576576576576577, 0.16666666666666669, 0.16756756756756758, 0.16846846846846847, 0.16936936936936936, 0.17027027027027028, 0.17117117117117117, 0.1720720720720721, 0.17297297297297298, 0.17387387387387387, 0.17477477477477477, 0.17567567567567569, 0.17657657657657658, 0.1774774774774775, 0.1783783783783784, 0.17927927927927928, 0.18018018018018017, 0.1810810810810811, 0.18198198198198198, 0.1828828828828829, 0.1837837837837838, 0.18468468468468469, 0.18558558558558558, 0.1864864864864865, 0.1873873873873874, 0.1882882882882883, 0.1891891891891892, 0.1900900900900901, 0.19099099099099098, 0.1918918918918919, 0.1927927927927928, 0.1936936936936937, 0.1945945945945946, 0.1954954954954955, 0.1963963963963964, 0.1972972972972973, 0.1981981981981982, 0.19909909909909912, 0.2, 0.2009009009009009, 0.2018018018018018, 0.20270270270270271, 0.2036036036036036, 0.20450450450450453, 0.20540540540540542, 0.2063063063063063, 0.2072072072072072, 0.20810810810810812, 0.209009009009009, 0.20990990990990993, 0.21081081081081082, 0.21171171171171171, 0.2126126126126126, 0.21351351351351353, 0.21441441441441442, 0.21531531531531534, 0.21621621621621623, 0.21711711711711712, 0.218018018018018, 0.21891891891891893, 0.21981981981981982, 0.22072072072072074, 0.22162162162162163, 0.22252252252252253, 0.22342342342342342, 0.22432432432432434, 0.22522522522522523, 0.22612612612612612, 0.22702702702702704, 0.22792792792792793, 0.22882882882882882, 0.22972972972972974, 0.23063063063063063, 0.23153153153153153, 0.23243243243243245, 0.23333333333333334, 0.23423423423423423, 0.23513513513513515, 0.23603603603603604, 0.23693693693693693, 0.23783783783783785, 0.23873873873873874, 0.23963963963963963, 0.24054054054054055, 0.24144144144144145, 0.24234234234234234, 0.24324324324324326, 0.24414414414414415, 0.24504504504504504, 0.24594594594594596, 0.24684684684684685, 0.24774774774774774, 0.24864864864864866, 0.24954954954954955, 0.25045045045045045, 0.25135135135135134, 0.25225225225225223, 0.2531531531531531, 0.25405405405405407, 0.25495495495495496, 0.25585585585585585, 0.2567567567567568, 0.2576576576576577, 0.2585585585585586, 0.2594594594594595, 0.26036036036036037, 0.26126126126126126, 0.26216216216216215, 0.26306306306306304, 0.26396396396396393, 0.2648648648648649, 0.26576576576576577, 0.26666666666666666, 0.2675675675675676, 0.2684684684684685, 0.2693693693693694, 0.2702702702702703, 0.2711711711711712, 0.27207207207207207, 0.27297297297297296, 0.27387387387387385, 0.27477477477477474, 0.2756756756756757, 0.2765765765765766, 0.2774774774774775, 0.2783783783783784, 0.2792792792792793, 0.2801801801801802, 0.2810810810810811, 0.281981981981982, 0.2828828828828829, 0.28378378378378377, 0.28468468468468466, 0.28558558558558556, 0.2864864864864865, 0.2873873873873874, 0.2882882882882883, 0.28918918918918923, 0.2900900900900901, 0.290990990990991, 0.2918918918918919, 0.2927927927927928, 0.2936936936936937, 0.2945945945945946, 0.2954954954954955, 0.29639639639639637, 0.2972972972972973, 0.2981981981981982, 0.2990990990990991, 0.30000000000000004, 0.30090090090090094, 0.30180180180180183, 0.3027027027027027, 0.3036036036036036, 0.3045045045045045, 0.3054054054054054, 0.3063063063063063, 0.3072072072072072, 0.3081081081081081, 0.309009009009009, 0.3099099099099099, 0.31081081081081086, 0.31171171171171175, 0.31261261261261264, 0.31351351351351353, 0.3144144144144144, 0.3153153153153153, 0.3162162162162162, 0.3171171171171171, 0.318018018018018, 0.31891891891891894, 0.31981981981981983, 0.3207207207207207, 0.32162162162162167, 0.32252252252252256, 0.32342342342342345, 0.32432432432432434, 0.32522522522522523, 0.3261261261261261, 0.327027027027027, 0.3279279279279279, 0.3288288288288288, 0.32972972972972975, 0.33063063063063064, 0.33153153153153153, 0.3324324324324325, 0.33333333333333337, 0.33423423423423426, 0.33513513513513515, 0.33603603603603605, 0.33693693693693694, 0.33783783783783783, 0.3387387387387387, 0.3396396396396396, 0.34054054054054056, 0.34144144144144145, 0.34234234234234234, 0.3432432432432433, 0.3441441441441442, 0.3450450450450451, 0.34594594594594597, 0.34684684684684686, 0.34774774774774775, 0.34864864864864864, 0.34954954954954953, 0.3504504504504504, 0.3513513513513513, 0.3522522522522522, 0.3531531531531532, 0.3540540540540541, 0.354954954954955, 0.3558558558558559, 0.3567567567567568, 0.35765765765765767, 0.35855855855855856, 0.35945945945945945, 0.36036036036036034, 0.36126126126126124, 0.3621621621621621, 0.363063063063063, 0.363963963963964, 0.3648648648648649, 0.3657657657657658, 0.3666666666666667, 0.3675675675675676, 0.3684684684684685, 0.36936936936936937, 0.37027027027027026, 0.37117117117117115, 0.37207207207207205, 0.37297297297297294, 0.37387387387387383, 0.37477477477477483, 0.3756756756756757, 0.3765765765765766, 0.3774774774774775, 0.3783783783783784, 0.3792792792792793, 0.3801801801801802, 0.3810810810810811, 0.38198198198198197, 0.38288288288288286, 0.38378378378378375, 0.38468468468468464, 0.38558558558558564, 0.38648648648648654, 0.3873873873873874, 0.3882882882882883, 0.3891891891891892, 0.3900900900900901, 0.390990990990991, 0.3918918918918919, 0.3927927927927928, 0.39369369369369367, 0.39459459459459456, 0.39549549549549545, 0.39639639639639646, 0.39729729729729735, 0.39819819819819824, 0.39909909909909913, 0.4, 0.4009009009009009, 0.4018018018018018, 0.4027027027027027, 0.4036036036036036, 0.4045045045045045, 0.4054054054054054, 0.40630630630630626, 0.40720720720720727, 0.40810810810810816, 0.40900900900900905, 0.40990990990990994, 0.41081081081081083, 0.4117117117117117, 0.4126126126126126, 0.4135135135135135, 0.4144144144144144, 0.4153153153153153, 0.4162162162162162, 0.4171171171171171, 0.4180180180180181, 0.41891891891891897, 0.41981981981981986, 0.42072072072072075, 0.42162162162162165, 0.42252252252252254, 0.42342342342342343, 0.4243243243243243, 0.4252252252252252, 0.4261261261261261, 0.427027027027027, 0.4279279279279279, 0.4288288288288289, 0.4297297297297298, 0.4306306306306307, 0.43153153153153156, 0.43243243243243246, 0.43333333333333335, 0.43423423423423424, 0.43513513513513513, 0.436036036036036, 0.4369369369369369, 0.4378378378378378, 0.4387387387387387, 0.4396396396396397, 0.4405405405405406, 0.4414414414414415, 0.4423423423423424, 0.44324324324324327, 0.44414414414414416, 0.44504504504504505, 0.44594594594594594, 0.44684684684684683, 0.4477477477477477, 0.4486486486486486, 0.4495495495495495, 0.4504504504504505, 0.4513513513513514, 0.4522522522522523, 0.4531531531531532, 0.4540540540540541, 0.45495495495495497, 0.45585585585585586, 0.45675675675675675, 0.45765765765765765, 0.45855855855855854, 0.45945945945945943, 0.4603603603603603, 0.4612612612612613, 0.4621621621621622, 0.4630630630630631, 0.463963963963964, 0.4648648648648649, 0.4657657657657658, 0.4666666666666667, 0.46756756756756757, 0.46846846846846846, 0.46936936936936935, 0.47027027027027024, 0.47117117117117113, 0.47207207207207214, 0.472972972972973, 0.4738738738738739, 0.4747747747747748, 0.4756756756756757, 0.4765765765765766, 0.4774774774774775, 0.4783783783783784, 0.47927927927927927, 0.48018018018018016, 0.48108108108108105, 0.48198198198198194, 0.48288288288288295, 0.48378378378378384, 0.48468468468468473, 0.4855855855855856, 0.4864864864864865, 0.4873873873873874, 0.4882882882882883, 0.4891891891891892, 0.4900900900900901, 0.49099099099099097, 0.49189189189189186, 0.49279279279279276, 0.49369369369369376, 0.49459459459459465, 0.49549549549549554, 0.49639639639639643, 0.4972972972972973, 0.4981981981981982, 0.4990990990990991, 0.5, 0.5009009009009009, 0.5018018018018018, 0.5027027027027027, 0.5036036036036036, 0.5045045045045046, 0.5054054054054055, 0.5063063063063064, 0.5072072072072072, 0.5081081081081081, 0.509009009009009, 0.5099099099099099, 0.5108108108108108, 0.5117117117117117, 0.5126126126126126, 0.5135135135135135, 0.5144144144144144, 0.5153153153153154, 0.5162162162162163, 0.5171171171171172, 0.5180180180180181, 0.518918918918919, 0.5198198198198198, 0.5207207207207207, 0.5216216216216216, 0.5225225225225225, 0.5234234234234234, 0.5243243243243243, 0.5252252252252252, 0.5261261261261262, 0.5270270270270271, 0.527927927927928, 0.5288288288288289, 0.5297297297297298, 0.5306306306306307, 0.5315315315315315, 0.5324324324324324, 0.5333333333333333, 0.5342342342342342, 0.5351351351351351, 0.536036036036036, 0.536936936936937, 0.5378378378378379, 0.5387387387387388, 0.5396396396396397, 0.5405405405405406, 0.5414414414414415, 0.5423423423423424, 0.5432432432432432, 0.5441441441441441, 0.545045045045045, 0.5459459459459459, 0.5468468468468468, 0.5477477477477478, 0.5486486486486487, 0.5495495495495496, 0.5504504504504505, 0.5513513513513514, 0.5522522522522523, 0.5531531531531532, 0.5540540540540541, 0.554954954954955, 0.5558558558558558, 0.5567567567567567, 0.5576576576576576, 0.5585585585585586, 0.5594594594594595, 0.5603603603603604, 0.5612612612612613, 0.5621621621621622, 0.5630630630630631, 0.563963963963964, 0.5648648648648649, 0.5657657657657658, 0.5666666666666667, 0.5675675675675675, 0.5684684684684684, 0.5693693693693693, 0.5702702702702703, 0.5711711711711712, 0.5720720720720721, 0.572972972972973, 0.5738738738738739, 0.5747747747747748, 0.5756756756756757, 0.5765765765765766, 0.5774774774774775, 0.5783783783783784, 0.5792792792792792, 0.5801801801801801, 0.5810810810810811, 0.581981981981982, 0.5828828828828829, 0.5837837837837838, 0.5846846846846847, 0.5855855855855856, 0.5864864864864865, 0.5873873873873874, 0.5882882882882883, 0.5891891891891892, 0.5900900900900901, 0.590990990990991, 0.591891891891892, 0.5927927927927928, 0.5936936936936937, 0.5945945945945946, 0.5954954954954955, 0.5963963963963964, 0.5972972972972973, 0.5981981981981982, 0.5990990990990991, 0.6, 0.6009009009009009, 0.6018018018018018, 0.6027027027027027, 0.6036036036036035, 0.6045045045045044, 0.6054054054054054, 0.6063063063063063, 0.6072072072072072, 0.6081081081081081, 0.609009009009009, 0.6099099099099099, 0.6108108108108108, 0.6117117117117117, 0.6126126126126126, 0.6135135135135135, 0.6144144144144144, 0.6153153153153152, 0.6162162162162163, 0.6171171171171171, 0.618018018018018, 0.6189189189189189, 0.6198198198198198, 0.6207207207207207, 0.6216216216216216, 0.6225225225225225, 0.6234234234234234, 0.6243243243243243, 0.6252252252252252, 0.6261261261261261, 0.6270270270270271, 0.627927927927928, 0.6288288288288288, 0.6297297297297297, 0.6306306306306306, 0.6315315315315315, 0.6324324324324324, 0.6333333333333333, 0.6342342342342342, 0.6351351351351351, 0.636036036036036, 0.6369369369369369, 0.6378378378378379, 0.6387387387387388, 0.6396396396396397, 0.6405405405405405, 0.6414414414414414, 0.6423423423423423, 0.6432432432432432, 0.6441441441441441, 0.645045045045045, 0.6459459459459459, 0.6468468468468468, 0.6477477477477477, 0.6486486486486487, 0.6495495495495496, 0.6504504504504505, 0.6513513513513514, 0.6522522522522523, 0.6531531531531531, 0.654054054054054, 0.6549549549549549, 0.6558558558558558, 0.6567567567567567, 0.6576576576576576, 0.6585585585585585, 0.6594594594594595, 0.6603603603603604, 0.6612612612612613, 0.6621621621621622, 0.6630630630630631, 0.663963963963964, 0.6648648648648648, 0.6657657657657657, 0.6666666666666666, 0.6675675675675675, 0.6684684684684684, 0.6693693693693693, 0.6702702702702703, 0.6711711711711712, 0.6720720720720721, 0.672972972972973, 0.6738738738738739, 0.6747747747747748, 0.6756756756756757, 0.6765765765765765, 0.6774774774774774, 0.6783783783783783, 0.6792792792792792, 0.6801801801801801, 0.6810810810810811, 0.681981981981982, 0.6828828828828829, 0.6837837837837838, 0.6846846846846847, 0.6855855855855856, 0.6864864864864865, 0.6873873873873874, 0.6882882882882883, 0.6891891891891891, 0.69009009009009, 0.6909909909909909, 0.6918918918918919, 0.6927927927927928, 0.6936936936936937, 0.6945945945945946, 0.6954954954954955, 0.6963963963963964, 0.6972972972972973, 0.6981981981981982, 0.6990990990990991, 0.7, 0.7009009009009008, 0.7018018018018017, 0.7027027027027027, 0.7036036036036036, 0.7045045045045045, 0.7054054054054054, 0.7063063063063063, 0.7072072072072072, 0.7081081081081081, 0.709009009009009, 0.7099099099099099, 0.7108108108108108, 0.7117117117117117, 0.7126126126126126, 0.7135135135135136, 0.7144144144144144, 0.7153153153153153, 0.7162162162162162, 0.7171171171171171, 0.718018018018018, 0.7189189189189189, 0.7198198198198198, 0.7207207207207207, 0.7216216216216216, 0.7225225225225225, 0.7234234234234234, 0.7243243243243244, 0.7252252252252253, 0.7261261261261261, 0.727027027027027, 0.7279279279279279, 0.7288288288288288, 0.7297297297297297, 0.7306306306306306, 0.7315315315315315, 0.7324324324324324, 0.7333333333333333, 0.7342342342342342, 0.7351351351351352, 0.7360360360360361, 0.736936936936937, 0.7378378378378379, 0.7387387387387387, 0.7396396396396396, 0.7405405405405405, 0.7414414414414414, 0.7423423423423423, 0.7432432432432432, 0.7441441441441441, 0.745045045045045, 0.745945945945946, 0.7468468468468469, 0.7477477477477478, 0.7486486486486487, 0.7495495495495496, 0.7504504504504504, 0.7513513513513513, 0.7522522522522522, 0.7531531531531531, 0.754054054054054, 0.7549549549549549, 0.7558558558558558, 0.7567567567567568, 0.7576576576576577, 0.7585585585585586, 0.7594594594594595, 0.7603603603603604, 0.7612612612612613, 0.7621621621621621, 0.763063063063063, 0.7639639639639639, 0.7648648648648648, 0.7657657657657657, 0.7666666666666666, 0.7675675675675676, 0.7684684684684685, 0.7693693693693694, 0.7702702702702703, 0.7711711711711712, 0.7720720720720721, 0.772972972972973, 0.7738738738738739, 0.7747747747747747, 0.7756756756756756, 0.7765765765765765, 0.7774774774774774, 0.7783783783783784, 0.7792792792792793, 0.7801801801801802, 0.7810810810810811, 0.781981981981982, 0.7828828828828829, 0.7837837837837838, 0.7846846846846847, 0.7855855855855856, 0.7864864864864864, 0.7873873873873873, 0.7882882882882882, 0.7891891891891892, 0.7900900900900901, 0.790990990990991, 0.7918918918918919, 0.7927927927927928, 0.7936936936936937, 0.7945945945945946, 0.7954954954954955, 0.7963963963963964, 0.7972972972972973, 0.7981981981981981, 0.799099099099099, 0.7999999999999999, 0.8009009009009009, 0.8018018018018018, 0.8027027027027027, 0.8036036036036036, 0.8045045045045045, 0.8054054054054054, 0.8063063063063063, 0.8072072072072072, 0.8081081081081081, 0.809009009009009, 0.8099099099099099, 0.8108108108108107, 0.8117117117117117, 0.8126126126126126, 0.8135135135135135, 0.8144144144144144, 0.8153153153153153, 0.8162162162162162, 0.8171171171171171, 0.818018018018018, 0.8189189189189189, 0.8198198198198198, 0.8207207207207207, 0.8216216216216216, 0.8225225225225226, 0.8234234234234235, 0.8243243243243243, 0.8252252252252252, 0.8261261261261261, 0.827027027027027, 0.8279279279279279, 0.8288288288288288, 0.8297297297297297, 0.8306306306306306, 0.8315315315315315, 0.8324324324324324, 0.8333333333333334, 0.8342342342342343, 0.8351351351351352, 0.836036036036036, 0.8369369369369369, 0.8378378378378378, 0.8387387387387387, 0.8396396396396396, 0.8405405405405405, 0.8414414414414414, 0.8423423423423423, 0.8432432432432432, 0.8441441441441442, 0.8450450450450451, 0.845945945945946, 0.8468468468468469, 0.8477477477477477, 0.8486486486486486, 0.8495495495495495, 0.8504504504504504, 0.8513513513513513, 0.8522522522522522, 0.8531531531531531, 0.854054054054054, 0.854954954954955, 0.8558558558558559, 0.8567567567567568, 0.8576576576576577, 0.8585585585585586, 0.8594594594594595, 0.8603603603603603, 0.8612612612612612, 0.8621621621621621, 0.863063063063063, 0.8639639639639639, 0.8648648648648648, 0.8657657657657658, 0.8666666666666667, 0.8675675675675676, 0.8684684684684685, 0.8693693693693694, 0.8702702702702703, 0.8711711711711712, 0.872072072072072, 0.8729729729729729, 0.8738738738738738, 0.8747747747747747, 0.8756756756756756, 0.8765765765765766, 0.8774774774774775, 0.8783783783783784, 0.8792792792792793, 0.8801801801801802, 0.8810810810810811, 0.881981981981982, 0.8828828828828829, 0.8837837837837837, 0.8846846846846846, 0.8855855855855855, 0.8864864864864864, 0.8873873873873874, 0.8882882882882883, 0.8891891891891892, 0.8900900900900901, 0.890990990990991, 0.8918918918918919, 0.8927927927927928, 0.8936936936936937, 0.8945945945945946, 0.8954954954954955, 0.8963963963963963, 0.8972972972972972, 0.8981981981981982, 0.8990990990990991, 0.9, 0.9009009009009009, 0.9018018018018018, 0.9027027027027027, 0.9036036036036036, 0.9045045045045045, 0.9054054054054054, 0.9063063063063063, 0.9072072072072072, 0.908108108108108, 0.909009009009009, 0.9099099099099099, 0.9108108108108108, 0.9117117117117117, 0.9126126126126126, 0.9135135135135135, 0.9144144144144144, 0.9153153153153153, 0.9162162162162162, 0.9171171171171171, 0.918018018018018, 0.9189189189189189, 0.9198198198198199, 0.9207207207207208, 0.9216216216216216, 0.9225225225225225, 0.9234234234234234, 0.9243243243243243, 0.9252252252252252, 0.9261261261261261, 0.927027027027027, 0.9279279279279279, 0.9288288288288288, 0.9297297297297297, 0.9306306306306307, 0.9315315315315316, 0.9324324324324325, 0.9333333333333333, 0.9342342342342342, 0.9351351351351351, 0.936036036036036, 0.9369369369369369, 0.9378378378378378, 0.9387387387387387, 0.9396396396396396, 0.9405405405405405, 0.9414414414414415, 0.9423423423423424, 0.9432432432432433, 0.9441441441441442, 0.945045045045045, 0.9459459459459459, 0.9468468468468468, 0.9477477477477477, 0.9486486486486486, 0.9495495495495495, 0.9504504504504504, 0.9513513513513513, 0.9522522522522523, 0.9531531531531532, 0.9540540540540541, 0.954954954954955, 0.9558558558558559, 0.9567567567567568, 0.9576576576576576, 0.9585585585585585, 0.9594594594594594, 0.9603603603603603, 0.9612612612612612, 0.9621621621621621, 0.9630630630630631, 0.963963963963964, 0.9648648648648649, 0.9657657657657658, 0.9666666666666667, 0.9675675675675676, 0.9684684684684685, 0.9693693693693693, 0.9702702702702702, 0.9711711711711711, 0.972072072072072, 0.9729729729729729, 0.9738738738738739, 0.9747747747747748, 0.9756756756756757, 0.9765765765765766, 0.9774774774774775, 0.9783783783783784, 0.9792792792792793, 0.9801801801801802, 0.981081081081081, 0.9819819819819819, 0.9828828828828828, 0.9837837837837837, 0.9846846846846847, 0.9855855855855856, 0.9864864864864865, 0.9873873873873874, 0.9882882882882883, 0.9891891891891892, 0.9900900900900901, 0.990990990990991, 0.9918918918918919, 0.9927927927927928, 0.9936936936936936, 0.9945945945945945, 0.9954954954954955, 0.9963963963963964, 0.9972972972972973, 0.9981981981981982, 0.9990990990990991, 1.0], "expected": [0.28865328571276644, 0.2886529088277097, 0.28865252903391647, 0.288652146338679, 0.2886517607495634, 0.28865137227382665, 0.2886509809189631, 0.2886505866922419, 0.28865018960111005, 0.2886497896527148, 0.2886493868545026, 0.28864898121364846, 0.2886485727373871, 0.28864816143305055, 0.28864774730770515, 0.2886473303686424, 0.288646910622945, 0.28864648807784415, 0.2886460627403437, 0.2886456346176467, 0.2886452037167388, 0.2886447700449849, 0.288644333608677, 0.2886438944157895, 0.28864345247256246, 0.28864300778629753, 0.2886425603638335, 0.28864211021221636, 0.28864165733826735, 0.28864120174893043, 0.28864074345104773, 0.28864028245153656, 0.2886398187571363, 0.28863935237472016, 0.28863888331104304, 0.28863841157291287, 0.2886379371670463, 0.2886374601002048, 0.2886369803790761, 0.2886364980103554, 0.2886360130007838, 0.28863552535691367, 0.2886350350854319, 0.2886345421929436, 0.28863404668622916, 0.28863354857135765, 0.2886330478555579, 0.28863254454471154, 0.28863203864592174, 0.2886315301653039, 0.2886310191094758, 0.28863050548486424, 0.28862998929799394, 0.28862947055518967, 0.28862894926290367, 0.2886284254275378, 0.2886278990554672, 0.2886273701530691, 0.28862683872661277, 0.28862630478242923, 0.2886257683268571, 0.28862522936614016, 0.2886246879065601, 0.2886241439543747, 0.28862359751576694, 0.28862304859699983, 0.28862249720420446, 0.2886219433436121, 0.28862138702133017, 0.288620828243642, 0.2886202670163291, 0.28861970334592574, 0.2886191372381782, 0.2886185686993167, 0.288617997735315, 0.28861742435229576, 0.28861684855619685, 0.2886162703530636, 0.2886156897488613, 0.2886151067495682, 0.2886145213610858, 0.2886139335894341, 0.28861334344047124, 0.28861275092008554, 0.2886121560341875, 0.28861155878861244, 0.28861095918925833, 0.2886103572419058, 0.28860975295241065, 0.2886091463265339, 0.28860853737008685, 0.28860792608882047, 0.2886073124885605, 0.28860669657483945, 0.2886060783536538, 0.28860545783040914, 0.28860483501108675, 0.2886042099011283, 0.2886035825062829, 0.2886029528321761, 0.28860232088443993, 0.2886016866686537, 0.2886010501904389, 0.28860041145536436, 0.28859977046897217, 0.28859912723682773, 0.28859848176445946, 0.28859783405736755, 0.2885971841210482, 0.288596531960997, 0.2885958775826621, 0.2885952209915269, 0.28859456219299484, 0.28859390119251854, 0.28859323799547704, 0.28859257260728466, 0.28859190503328935, 0.28859123527894287, 0.2885905633494111, 0.2885898892502448, 0.2885892129865883, 0.2885885345638322, 0.28858785398721587, 0.2885871712620572, 0.28858648639359186, 0.28858579938707574, 0.2885851102477129, 0.2885844189807629, 0.2885837255913897, 0.2885830300847951, 0.2885823324661501, 0.28858163274061693, 0.2885809309133324, 0.28858022698942676, 0.28857952097401535, 0.2885788128722088, 0.28857810268909195, 0.2885773904297363, 0.2885766760991989, 0.2885759597025368, 0.2885752412447767, 0.28857452073091794, 0.28857379816603634, 0.28857307355499323, 0.2885723469029193, 0.2885716182146627, 0.2885708874952208, 0.2885701547495145, 0.2885694199824812, 0.28856868319902923, 0.2885679444040507, 0.28856720360243077, 0.28856646079905235, 0.2885657159987534, 0.28856496920637975, 0.2885642204267704, 0.28856346966474533, 0.28856271692510743, 0.28856196221264124, 0.28856120553212916, 0.2885604468883353, 0.2885596862860233, 0.2885589237299135, 0.28855815922475225, 0.2885573927752424, 0.28855662438612045, 0.2885558540619868, 0.28855508180763456, 0.2885543076276058, 0.28855353152668217, 0.28855275350936693, 0.2885519735804141, 0.2885511917443464, 0.28855040800580806, 0.2885496223693705, 0.2885488348396118, 0.2885480454211146, 0.28854725411841015, 0.288546460936056, 0.288545665878568, 0.28854486895046416, 0.2885440701562536, 0.28854326950042675, 0.28854246698744623, 0.2885416626218122, 0.2885408564079547, 0.2885400483503518, 0.2885392384533632, 0.2885384267215105, 0.28853761315909404, 0.2885367977706274, 0.2885359805603752, 0.2885351615328237, 0.2885343406922286, 0.28853351804304145, 0.28853269358952655, 0.2885318673360465, 0.2885310392869082, 0.28853020944641183, 0.2885293778188638, 0.2885285444085271, 0.2885277092196927, 0.28852687225661455, 0.2885260335235312, 0.2885251930246807, 0.2885243507642998, 0.28852350674659116, 0.2885226609757619, 0.28852181345600814, 0.288520964191516, 0.28852011318643817, 0.28851926044496307, 0.2885184059711896, 0.2885175497693235, 0.28851669184341866, 0.2885158321976567, 0.28851497083607863, 0.2885141077628549, 0.2885132429819842, 0.2885123764976134, 0.2885115083137601, 0.2885106384344962, 0.2885097668638409, 0.2885088936058524, 0.2885080186645422, 0.2885071420439067, 0.28850626374794947, 0.28850538378067525, 0.28850450214605, 0.2885036188480328, 0.28850273389059394, 0.28850184727768075, 0.2885009590132239, 0.28850006910115594, 0.28849917754540494, 0.28849828434983454, 0.2884973895183967, 0.28849649305492314, 0.28849559496334726, 0.28849469524747506, 0.2884937939112284, 0.2884928909583839, 0.2884919863928411, 0.28849108021837794, 0.2884901724388371, 0.2884892630580139, 0.28848835207970913, 0.28848743950770794, 0.28848652534580155, 0.2884856095977367, 0.28848469226727974, 0.2884837733581821, 0.28848285287417624, 0.28848193081899864, 0.2884810071963605, 0.2884800820099706, 0.28847915526354007, 0.28847822696075087, 0.2884772971052829, 0.28847636570082624, 0.2884754327510064, 0.2884744982595248, 0.2884735622299733, 0.288472624666037, 0.2884716855712885, 0.28847074494939895, 0.28846980280392137, 0.28846885913849996, 0.28846791395669275, 0.28846696726209403, 0.28846601905826014, 0.28846506934876276, 0.28846411813715195, 0.2884631654269705, 0.2884622112217529, 0.2884612555250152, 0.28846029834028525, 0.288459339671065, 0.28845837952085773, 0.28845741789313817, 0.2884564547914008, 0.2884554902191056, 0.2884545241797418, 0.2884535566767194, 0.28845258771352794, 0.2884516172935664, 0.2884506454202974, 0.2884496720971057, 0.288448697327439, 0.28844772111465733, 0.28844674346219823, 0.2884457643734057, 0.28844478385169336, 0.28844380190039026, 0.28844281852288645, 0.28844183372252546, 0.2884408475026415, 0.28843985986657533, 0.28843887081765107, 0.28843788035919016, 0.28843688849449167, 0.2884358952268621, 0.288434900559601, 0.2884339044959819, 0.28843290703928226, 0.2884319081927776, 0.2884309079597109, 0.2884299063433615, 0.2884289033469363, 0.2884278989737125, 0.2884268932268732, 0.28842588610968095, 0.2884248776253034, 0.28842386777698736, 0.2884228565678847, 0.2884218440012265, 0.28842083008014685, 0.2884198148078556, 0.2884187981874922, 0.2884177802222267, 0.28841676091520124, 0.2884157402695478, 0.28841471828840615, 0.28841369497490454, 0.28841267033215523, 0.28841164436326544, 0.2884106170713332, 0.2884095884594646, 0.28840855853073666, 0.28840752728821756, 0.28840649473500835, 0.28840546087413527, 0.2884044257086856, 0.2884033892416767, 0.2884023514761814, 0.28840131241520084, 0.28840027206179114, 0.2883992304189396, 0.28839818748968626, 0.288397143277008, 0.2883960977839261, 0.2883950510134069, 0.2883940029684399, 0.2883929536519996, 0.2883919030670549, 0.28839085121656194, 0.2883897981034697, 0.2883887437307263, 0.28838768810126975, 0.2883866312180297, 0.2883855730839271, 0.2883845137018795, 0.2883834530747988, 0.2883823912055838, 0.28838132809711675, 0.2883802637523149, 0.28837919817402524, 0.2883781313651525, 0.28837706332853225, 0.28837599406705405, 0.2883749235835401, 0.2883738518808655, 0.2883727789618397, 0.28837170482932756, 0.2883706294861184, 0.2883695529350581, 0.2883684751789443, 0.28836739622058377, 0.2883663160627741, 0.28836523470830716, 0.2883641521599665, 0.28836306842052783, 0.2883619834927595, 0.28836089737943355, 0.2883598100832995, 0.28835872160710696, 0.2883576319536035, 0.28835654112552517, 0.2883554491256115, 0.28835435595656206, 0.28835326162112196, 0.2883521661219774, 0.2883510694618586, 0.2883499716434355, 0.28834887266942455, 0.28834777254248845, 0.2883466712653267, 0.28834556884059026, 0.28834446527096513, 0.28834336055908805, 0.28834225470763003, 0.2883411477192316, 0.2883400395965269, 0.2883389303421574, 0.2883378199587473, 0.2883367084489157, 0.2883355958152789, 0.28833448206044265, 0.28833336718701574, 0.28833225119758904, 0.2883311340947526, 0.2883300158810921, 0.288328896559176, 0.28832777613159316, 0.2883266546008888, 0.28832553196964084, 0.2883244082403809, 0.28832328341567964, 0.2883221574980518, 0.2883210304900576, 0.2883199023942034, 0.2883187732130326, 0.2883176429490398, 0.2883165116047548, 0.28831537918267064, 0.28831424568529196, 0.2883131111151086, 0.2883119754746054, 0.28831083876626584, 0.2883097009925664, 0.28830856215597556, 0.28830742225895467, 0.28830628130396124, 0.2883051392934498, 0.28830399622986436, 0.28830285211564033, 0.2883017069532258, 0.28830056074502947, 0.2882994134934954, 0.2882982652010207, 0.288297115870036, 0.288295965502926, 0.2882948141021135, 0.2882936616699719, 0.28829250820890817, 0.28829135372128684, 0.28829019820950585, 0.2882890416759196, 0.2882878841229032, 0.28828672555281487, 0.2882855659680124, 0.28828440537084465, 0.2882832437636532, 0.2882820811487766, 0.288280917528554, 0.2882797529053056, 0.2882785872813603, 0.2882774206590272, 0.28827625304062693, 0.2882750844284619, 0.2882739148248247, 0.28827274423202665, 0.2882715726523399, 0.2882704000880674, 0.288269226541466, 0.2882680520148358, 0.28826687651042154, 0.28826570003050417, 0.28826452257732676, 0.2882633441531568, 0.2882621647602263, 0.2882609844007935, 0.28825980307708565, 0.2882586207913347, 0.28825743754577127, 0.28825625334261434, 0.28825506818408364, 0.28825388207238317, 0.28825269500972467, 0.28825150699830865, 0.28825031804033124, 0.2882491281379801, 0.28824793729344106, 0.28824674550889645, 0.28824555278652736, 0.288244359128492, 0.2882431645369703, 0.2882419690141063, 0.28824077256207253, 0.2882395751830031, 0.28823837687905923, 0.2882371776523673, 0.28823597750507773, 0.2882347764393037, 0.28823357445719133, 0.2882323715608414, 0.2882311677523833, 0.28822996303392545, 0.2882287574075699, 0.28822755087542257, 0.28822634343957887, 0.2882251351021319, 0.2882239258651643, 0.28822271573076225, 0.28822150470100294, 0.2882202927779595, 0.28821907996369656, 0.28821786626028206, 0.2882166516697665, 0.2882154361942148, 0.28821421983566387, 0.2882130025961705, 0.2882117844777627, 0.2882105654824864, 0.28820934561236133, 0.28820812486942393, 0.28820690325568316, 0.28820568077316866, 0.2882044574238784, 0.28820323320983326, 0.288202008133025, 0.28820078219546047, 0.2881995553991286, 0.28819832774601706, 0.28819709923811204, 0.28819586987739443, 0.28819463966584113, 0.2881934086054181, 0.2881921766980951, 0.2881909439458357, 0.2881897103505949, 0.2881884759143275, 0.28818724063898155, 0.28818600452649634, 0.28818476757882483, 0.2881835297978868, 0.2881822911856286, 0.2881810517439601, 0.28817981147482213, 0.28817857038011613, 0.2881773284617693, 0.2881760857216778, 0.28817484216176165, 0.28817359778390716, 0.28817235259002105, 0.2881711065819894, 0.288169859761705, 0.28816861213104744, 0.2881673636918959, 0.28816611444612916, 0.28816486439561656, 0.2881636135422244, 0.28816236188781613, 0.2881611094342465, 0.2881598561833741, 0.2881586021370492, 0.28815734729711145, 0.2881560916654125, 0.28815483524377755, 0.288153578034053, 0.2881523200380557, 0.28815106125762247, 0.28814980169456456, 0.28814854135070667, 0.2881472802278546, 0.2881460183278267, 0.2881447556524153, 0.2881434922034358, 0.2881422279826699, 0.28814096299192377, 0.2881396972329749, 0.28813843070761763, 0.2881371634176277, 0.2881358953647815, 0.2881346265508519, 0.2881333569776114, 0.28813208664682116, 0.2881308155602433, 0.2881295437196344, 0.2881282711267488, 0.2881269977833368, 0.2881257236911406, 0.28812444885190275, 0.2881231732673619, 0.28812189693925405, 0.288120619869301, 0.28811934205924034, 0.28811806351078123, 0.2881167842256552, 0.2881155042055659, 0.28811422345223403, 0.28811294196735526, 0.288111659752644, 0.2881103768097914, 0.28810909314049943, 0.2881078087464527, 0.2881065236293472, 0.2881052377908627, 0.2881039512326809, 0.28810266395647793, 0.28810137596392965, 0.28810008725670455, 0.2880987978364662, 0.28809750770487885, 0.28809621686360254, 0.28809492531428976, 0.2880936330585918, 0.2880923400981596, 0.28809104643462985, 0.28808975206965404, 0.288088457004857, 0.28808716124188266, 0.2880858647823503, 0.2880845676278965, 0.2880832697801331, 0.28808197124068974, 0.28808067201117, 0.2880793720931983, 0.2880780714883705, 0.2880767701983006, 0.2880754682245845, 0.28807416556882415, 0.28807286223261125, 0.28807155821753305, 0.2880702535251816, 0.28806894815714074, 0.2880676421149896, 0.28806633540030163, 0.28806502801465445, 0.2880637199596167, 0.28806241123675763, 0.2880611018476328, 0.2880597917938101, 0.2880584810768379, 0.28805716969827916, 0.28805585765967184, 0.288054544962573, 0.28805323160851626, 0.2880519175990472, 0.2880506029356965, 0.28804928762000337, 0.28804797165349005, 0.2880466550376907, 0.28804533777411995, 0.2880440198642991, 0.28804270130974685, 0.2880413821119765, 0.2880400622724958, 0.2880387417928093, 0.288037420674422, 0.28803609891883386, 0.28803477652754106, 0.2880334535020365, 0.28803212984380894, 0.28803080555434696, 0.28802948063513434, 0.2880281550876474, 0.28802682891337006, 0.288025502113769, 0.28802417469032326, 0.2880228466444902, 0.2880215179777438, 0.28802018869153706, 0.28801885878733613, 0.28801752826658783, 0.28801619713075066, 0.28801486538126836, 0.28801353301959093, 0.28801220004715855, 0.28801086646540824, 0.28800953227577936, 0.2880081974797053, 0.2880068620786136, 0.28800552607393315, 0.288004189467086, 0.2880028522594953, 0.28800151445257693, 0.28800017604774586, 0.28799883704641543, 0.28799749744999215, 0.2879961572598845, 0.2879948164774902, 0.28799347510421536, 0.28799213314145067, 0.287990790590595, 0.2879894474530318, 0.28798810373015804, 0.287986759423349, 0.2879854145339943, 0.2879840690634662, 0.2879827230131478, 0.28798137638440413, 0.28798002917861076, 0.28797868139713356, 0.2879773330413344, 0.2879759841125745, 0.287974634612217, 0.28797328454161136, 0.28797193390211445, 0.2879705826950727, 0.2879692309218344, 0.28796787858374384, 0.287966525682141, 0.28796517221836576, 0.28796381819374856, 0.28796246360963107, 0.287961108467332, 0.2879597527681876, 0.28795839651351385, 0.28795703970464004, 0.28795568234287594, 0.28795432442954527, 0.2879529659659544, 0.287951606953418, 0.2879502473932395, 0.28794888728672663, 0.2879475266351791, 0.28794616543989765, 0.28794480370217596, 0.2879434414233085, 0.28794207860458554, 0.2879407152472968, 0.2879393513527264, 0.287937986922156, 0.2879366219568661, 0.287935256458135, 0.2879338904272356, 0.28793252386543894, 0.2879311567740183, 0.28792978915423356, 0.28792842100735433, 0.28792705233463667, 0.2879256831373444, 0.2879243134167274, 0.2879229431740447, 0.28792157241053945, 0.28792020112746824, 0.28791882932606794, 0.28791745700758836, 0.2879160841732624, 0.2879147108243327, 0.2879133369620309, 0.28791196258759205, 0.28791058770224376, 0.2879092123072128, 0.2879078364037234, 0.287906459993, 0.2879050830762597, 0.28790370565471834, 0.28790232772959096, 0.28790094930209037, 0.28789957037342623, 0.2878981909448002, 0.287896811017423, 0.2878954305924904, 0.28789404967120613, 0.28789266825476095, 0.28789128634435623, 0.2878899039411768, 0.2878885210464159, 0.2878871376612567, 0.28788575378688774, 0.2878843694244848, 0.2878829845752331, 0.28788159924030526, 0.2878802134208746, 0.2878788271181162, 0.28787744033319895, 0.28787605306728736, 0.28787466532154643, 0.2878732770971406, 0.2878718883952267, 0.28787049921696467, 0.28786910956350564, 0.28786771943600376, 0.28786632883560953, 0.2878649377634722, 0.2878635462207327, 0.2878621542085383, 0.2878607617280247, 0.28785936878033497, 0.2878579753665997, 0.28785658148795834, 0.28785518714553565, 0.2878537923404665, 0.28785239707386967, 0.287851001346878, 0.2878496051606049, 0.28784820851617515, 0.28784681141470453, 0.2878454138573069, 0.28784401584509467, 0.2878426173791794, 0.28784121846066785, 0.28783981909066453, 0.28783841927027476, 0.28783701900059877, 0.28783561828273574, 0.2878342171177808, 0.28783281550682827, 0.28783141345097013, 0.28783001095129956, 0.287828608008898, 0.2878272046248554, 0.287825800800251, 0.28782439653616954, 0.28782299183368554, 0.2878215866938797, 0.28782018111782093, 0.2878187751065861, 0.28781736866124097, 0.2878159617828559, 0.2878145544724931, 0.2878131467312189, 0.28781173856009135, 0.2878103299601708, 0.28780892093251376, 0.28780751147817435, 0.28780610159820535, 0.28780469129365477, 0.28780328056557264, 0.2878018694150046, 0.28780045784299363, 0.2877990458505801, 0.2877976334388058, 0.28779622060870474, 0.2877948073613163, 0.2877933936976695, 0.2877919796187986, 0.28779056512572787, 0.28778915021949036, 0.2877877349011034, 0.28778631917159575, 0.28778490303198306, 0.28778348648328733, 0.2877820695265208, 0.28778065216270243, 0.28777923439283964, 0.2877778162179467, 0.287776397639029, 0.28777497865709156, 0.2877735592731411, 0.28777213948817737, 0.28777071930320053, 0.28776929871920826, 0.28776787773719703, 0.28776645635816045, 0.2877650345830897, 0.28776361241297277, 0.2877621898488018, 0.2877607668915569, 0.2877593435422272, 0.28775791980178894, 0.2877564956712272, 0.28775507115151355, 0.2877536462436305, 0.2877522209485455, 0.28775079526723574, 0.28774936920066546, 0.2877479427498076, 0.2877465159156242, 0.2877450886990807, 0.2877436611011387, 0.2877422331227586, 0.2877408047648995, 0.28773937602851457, 0.28773794691456017, 0.28773651742398754, 0.2877350875577487, 0.28773365731678996, 0.28773222670205756, 0.28773079571449905, 0.2877293643550553, 0.28772793262466445, 0.2877265005242708, 0.28772506805480563, 0.28772363521720945, 0.28772220201241006, 0.2877207684413445, 0.2877193345049364, 0.28771790020411797, 0.28771646553981184, 0.2877150305129445, 0.2877135951244351, 0.2877121593752061, 0.2877107232661745, 0.2877092867982568, 0.2877078499723685, 0.2877064127894216, 0.28770497525032734, 0.2877035373559941, 0.2877020991073288, 0.2877006605052392, 0.28769922155062727, 0.28769778224439424, 0.2876963425874414, 0.2876949025806654, 0.28769346222496595, 0.2876920215212328, 0.287690580470364, 0.28768913907324517, 0.2876876973307714, 0.2876862552438236, 0.28768481281329417, 0.28768337004006117, 0.28768192692501154, 0.2876804834690212, 0.28767903967297376, 0.2876775955377402, 0.28767615106420064, 0.2876747062532276, 0.28767326110569036, 0.2876718156224595, 0.2876703698044054, 0.28766892365239327, 0.28766747716728625, 0.2876660303499479, 0.28766458320124155, 0.28766313572202534, 0.28766168791315616, 0.28766023977549177, 0.28765879130988486, 0.28765734251719044, 0.28765589339825676, 0.28765444395393575, 0.28765299418507234, 0.287651544092516, 0.28765009367710714, 0.2876486429396919, 0.2876471918811079, 0.28764574050219716, 0.28764428880379556, 0.2876428367867395, 0.28764138445186327, 0.28763993179999975, 0.2876384788319798, 0.2876370255486316, 0.28763557195078404, 0.2876341180392631, 0.28763266381489355, 0.2876312092784965, 0.2876297544308939, 0.2876282992729059, 0.2876268438053499, 0.2876253880290416, 0.287623931944797, 0.28762247555342696, 0.2876210188557463, 0.2876195618525605, 0.2876181045446825, 0.2876166469329135, 0.2876151890180642, 0.2876137308009329, 0.2876122722823261, 0.2876108134630406, 0.28760935434387713, 0.2876078949256314, 0.2876064352090993, 0.2876049751950752, 0.2876035148843515, 0.28760205427772007, 0.2876005933759679, 0.28759913217988337, 0.2875976706902541, 0.28759620890786414, 0.28759474683349506, 0.2875932844679303, 0.2875918218119494, 0.28759035886633105, 0.2875888956318502, 0.28758743210928556, 0.28758596829940797, 0.2875845042029929, 0.2875830398208073, 0.2875815751536247, 0.28758011020220925, 0.2875786449673317, 0.28757717944975075, 0.28757571365023576, 0.28757424756954486, 0.2875727812084396, 0.28757131456767915, 0.28756984764802007, 0.287568380450219, 0.28756691297502945, 0.28756544522320615, 0.28756397719549764, 0.2875625088926558, 0.2875610403154304, 0.2875595714645655, 0.28755810234080814, 0.28755663294490347, 0.28755516327759256, 0.28755369333961844, 0.2875522231317175, 0.28755075265463204, 0.28754928190909584, 0.287547810895847, 0.2875463396156172, 0.2875448680691412, 0.2875433962571474, 0.28754192418036906, 0.2875404518395311, 0.28753897923536365, 0.2875375063685887, 0.28753603323993243, 0.2875345598501181, 0.28753308619986456, 0.28753161228989305, 0.28753013812092315]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/test.js new file mode 100644 index 000000000000..e4996ca1523f --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/stdev/test/test.js @@ -0,0 +1,117 @@ +/** +* @license Apache-2.0 +* +* 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. +* 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 abs = require( '@stdlib/math/base/special/abs' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var stdev = require( './../lib' ); + + +// FIXTURES // + +var smallC = require( './fixtures/python/small_c.json' ); +var largeC = require( './fixtures/python/large_c.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof stdev, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for `c`, the function returns `NaN`', function test( t ) { + var v = stdev( NaN ); + t.equal( isnan( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided `c <= 0`, the function returns `NaN`', function test( t ) { + var v; + + v = stdev( 0.0 ); + t.equal( isnan( v ), true, 'returns expected value' ); + + v = stdev( -1.0 ); + t.equal( isnan( v ), true, 'returns expected value' ); + + v = stdev( NINF ); + t.equal( isnan( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the standard deviation of a Bradford distribution given small parameter `c`', function test( t ) { + var expected; + var delta; + var tol; + var i; + var c; + var y; + + expected = smallC.expected; + c = smallC.c; + for ( i = 0; i < expected.length; i++ ) { + y = stdev( c[i] ); + if ( y === expected[i] ) { + t.equal( y, expected[i], 'c: '+c[i]+', y: '+y+', expected: '+expected[i] ); + } else { + delta = abs( y - expected[ i ] ); + + /* + * NOTE: the tolerance is set high in this case due to: + * + * 1. The shape parameter being very small which causes differences in the `ln` calculations when compared to the test fixtures by SciPy. + * 2. The expected values being very small. + */ + tol = 322.0 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + t.end(); +}); + +tape( 'the function returns the standard deviation of a Bradford distribution given large parameter `c`', function test( t ) { + var expected; + var delta; + var tol; + var i; + var c; + var y; + + expected = largeC.expected; + c = largeC.c; + for ( i = 0; i < expected.length; i++ ) { + y = stdev( c[i] ); + if ( y === expected[i] ) { + t.equal( y, expected[i], 'c: '+c[i]+', y: '+y+', expected: '+expected[i] ); + } else { + delta = abs( y - expected[ i ] ); + tol = 8.0 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + t.end(); +});