diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/README.md b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/README.md new file mode 100644 index 000000000000..8e7b7ecf2980 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/README.md @@ -0,0 +1,138 @@ + + +# Variance + +> [Bradford][bradford-distribution] distribution [variance][variance]. + + + +
+ +The [variance][variance] for a [Bradford][bradford-distribution] random variable is + + + +```math +\mathop{\mathrm{Var}}\left( X \right) = \frac{(c+2) \ln(1+c) - 2c}{2c (\ln(1+c))^2} +``` + + + + + +where `c` is the shape parameter. + +
+ + + + + +
+ +## Usage + +```javascript +var variance = require( '@stdlib/stats/base/dists/bradford/variance' ); +``` + +#### variance( c ) + +Returns the [variance][variance] of a [Bradford][bradford-distribution] distribution with shape parameter `c`. + +```javascript +var v = variance( 0.1 ); +// returns ~0.083 + +v = variance( 10.0 ); +// returns ~0.076 +``` + +If provided a shape parameter `c <= 0`, the function returns `NaN`. + +```javascript +var v = variance( 0.0 ); +// returns NaN + +v = variance( -1.5 ); +// returns NaN +``` + +
+ + + + + +
+ +
+ + + + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var variance = require( '@stdlib/stats/base/dists/bradford/variance' ); + +var c = uniform( 10, 0.1, 10.0 ); + +var v; +var i; +for ( i = 0; i < c.length; i++ ) { + v = variance( c[ i ] ); + console.log( 'c: %d, Var(X;c): %d', c[ i ].toFixed( 4 ), v.toFixed( 4 ) ); +} +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/benchmark/benchmark.js new file mode 100644 index 000000000000..f55d94a07bb2 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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 variance = 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 = variance( 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/variance/docs/img/equation_bradford_variance.svg b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/img/equation_bradford_variance.svg new file mode 100644 index 000000000000..2912c4402b01 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/img/equation_bradford_variance.svg @@ -0,0 +1,72 @@ + +normal upper V times normal a times normal r left-parenthesis upper X right-parenthesis equals 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 + + + \ No newline at end of file diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/repl.txt new file mode 100644 index 000000000000..f1f4187329e5 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/repl.txt @@ -0,0 +1,28 @@ + +{{alias}}( c ) + Returns the variance of a Bradford distribution with shape parameter `c`. + + If `c <= 0`, the function returns `NaN`. + + Parameters + ---------- + c: number + Shape parameter. + + Returns + ------- + out: number + Variance. + + Examples + -------- + > var v = {{alias}}( 0.1 ) + ~0.083 + > v = {{alias}}( 0.5 ) + ~0.083 + > v = {{alias}}( 10.0 ) + ~0.076 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/types/index.d.ts new file mode 100644 index 000000000000..6782e45d6867 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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 variance of a Bradford distribution. +* +* ## Notes +* +* - If `c <= 0`, the function returns `NaN`. +* +* @param c - shape parameter +* @returns variance +* +* @example +* var v = variance( 0.1 ); +* // returns ~0.083 +* +* @example +* var v = variance( 0.5 ); +* // returns ~0.083 +* +* @example +* var v = variance( 10.0 ); +* // returns ~0.076 +* +* @example +* var v = variance( 0.0 ); +* // returns NaN +* +* @example +* var v = variance( -1.0 ); +* // returns NaN +* +* @example +* var v = variance( NaN ); +* // returns NaN +*/ +declare function variance( c: number ): number; + + +// EXPORTS // + +export = variance; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/docs/types/test.ts new file mode 100644 index 000000000000..b5396f4675ce --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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 variance = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + variance( 0.3 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + variance( true ); // $ExpectError + variance( false ); // $ExpectError + variance( null ); // $ExpectError + variance( undefined ); // $ExpectError + variance( '5' ); // $ExpectError + variance( [] ); // $ExpectError + variance( {} ); // $ExpectError + variance( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + variance(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/examples/index.js new file mode 100644 index 000000000000..146daa32d4db --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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 variance = require( './../lib' ); + +var c = uniform( 10, 0.1, 10.0 ); + +var v; +var i; +for ( i = 0; i < c.length; i++ ) { + v = variance( c[ i ] ); + console.log( 'c: %d, Var(X;c): %d', c[ i ].toFixed( 4 ), v.toFixed( 4 ) ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/lib/index.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/lib/index.js new file mode 100644 index 000000000000..e4f6f38e22af --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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 variance. +* +* @module @stdlib/stats/base/dists/bradford/variance +* +* @example +* var variance = require( '@stdlib/stats/base/dists/bradford/variance' ); +* +* var v = variance( 0.1 ); +* // returns ~0.083 +* +* v = variance( 10.0 ); +* // returns ~0.076 +*/ + +// MODULES // + +var variance = require( './main.js' ); + + +// EXPORTS // + +module.exports = variance; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/lib/main.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/lib/main.js new file mode 100644 index 000000000000..c7b41e66bf0a --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/lib/main.js @@ -0,0 +1,74 @@ +/** +* @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' ); + + +// MAIN // + +/** +* Returns the variance of a Bradford distribution. +* +* @param {PositiveNumber} c - shape parameter +* @returns {PositiveNumber} variance +* +* @example +* var v = variance( 0.1 ); +* // returns ~0.083 +* +* @example +* var v = variance( 0.5 ); +* // returns ~0.083 +* +* @example +* var v = variance( 10.0 ); +* // returns ~0.076 +* +* @example +* var v = variance( 0.0 ); +* // returns NaN +* +* @example +* var v = variance( -1.0 ); +* // returns NaN +* +* @example +* var v = variance( NaN ); +* // returns NaN +*/ +function variance( c ) { + var k; + if ( + isnan( c ) || + c <= 0.0 + ) { + return NaN; + } + k = ln( 1.0 + c ); + return ( ( ( 2.0+c ) * k ) - ( 2.0*c ) ) / ( 2.0*c*k*k ); +} + + +// EXPORTS // + +module.exports = variance; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/package.json b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/package.json new file mode 100644 index 000000000000..7f92c91386cc --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/package.json @@ -0,0 +1,69 @@ +{ + "name": "@stdlib/stats/base/dists/bradford/variance", + "version": "0.0.0", + "description": "Bradford distribution variance.", + "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", + "variance", + "dispersion", + "spread", + "univariate" + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/fixtures/python/large_c.json b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/fixtures/python/large_c.json new file mode 100644 index 000000000000..2ecf0954e561 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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.08267358032783713, 0.08266509508401809, 0.08265659583165881, 0.08264808297305308, 0.08263955690273314, 0.08263101800764543, 0.08262246666730773, 0.08261390325396806, 0.08260532813276368, 0.08259674166186194, 0.08258814419261912, 0.0825795360697157, 0.08257091763129727, 0.08256228920911741, 0.0825536511286602, 0.0825450037092812, 0.08253634726432649, 0.08252768210125992, 0.08251900852178524, 0.08251032682196144, 0.08250163729231912, 0.08249294021797463, 0.08248423587873654, 0.082475524549219, 0.08246680649893867, 0.08245808199242485, 0.08244935128931537, 0.08244061464445344, 0.0824318723079888, 0.08242312452546427, 0.08241437153791151, 0.08240561358193936, 0.08239685088981905, 0.08238808368957305, 0.08237931220505527, 0.08237053665603268, 0.08236175725826739, 0.08235297422359093, 0.08234418775998503, 0.0823353980716512, 0.08232660535908644, 0.08231780981915336, 0.08230901164515039, 0.08230021102688011, 0.08229140815071477, 0.08228260319966219, 0.08227379635343088, 0.0822649877884887, 0.08225617767812862, 0.08224736619252451, 0.08223855349879261, 0.08222973976104736, 0.08222092514045598, 0.08221210979529697, 0.08220329388101023, 0.08219447755025208, 0.08218566095294566, 0.08217684423633007, 0.08216802754501279, 0.08215921102101542, 0.08215039480382132, 0.08214157903042367, 0.08213276383536827, 0.08212394935079992, 0.0821151357065052, 0.08210632302995508, 0.08209751144634767, 0.0820887010786469, 0.08207989204762522, 0.08207108447190119, 0.08206227846797823, 0.0820534741502838, 0.08204467163120382, 0.08203587102112063, 0.08202707242844855, 0.08201827595966765, 0.08200948171935929, 0.08200068981023804, 0.08199190033318524, 0.08198311338728143, 0.08197432906983698, 0.08196554747642436, 0.08195676870090642, 0.08194799283546825, 0.08193921997064474, 0.08193045019534947, 0.08192168359690408, 0.08191292026106337, 0.08190416027204421, 0.08189540371255105, 0.08188665066380188, 0.08187790120555404, 0.08186915541612932, 0.08186041337243742, 0.08185167515000116, 0.08184294082297891, 0.0818342104641893, 0.0818254841451317, 0.08181676193601105, 0.08180804390575722, 0.08179933012204793, 0.08179062065133004, 0.08178191555883875, 0.0817732149086195, 0.08176451876354639, 0.08175582718534272, 0.08174714023460034, 0.0817384579707976, 0.08172978045231778, 0.08172110773646861, 0.08171243987949833, 0.08170377693661442, 0.08169511896200042, 0.08168646600883232, 0.08167781812929585, 0.0816691753746024, 0.08166053779500529, 0.08165190543981415, 0.08164327835741247, 0.08163465659527092, 0.08162604019996318, 0.08161742921718017, 0.08160882369174453, 0.08160022366762441, 0.0815916291879478, 0.08158304029501577, 0.08157445703031599, 0.08156587943453551, 0.08155730754757412, 0.08154874140855693, 0.08154018105584655, 0.0815316265270558, 0.08152307785905855, 0.08151453508800344, 0.08150599824932386, 0.08149746737775015, 0.08148894250732029, 0.08148042367139184, 0.08147191090265132, 0.08146340423312673, 0.08145490369419589, 0.08144640931659893, 0.0814379211304466, 0.08142943916523095, 0.08142096344983532, 0.08141249401254337, 0.08140403088104968, 0.08139557408246725, 0.08138712364333794, 0.0813786795896413, 0.08137024194680288, 0.08136181073970386, 0.08135338599268838, 0.08134496772957248, 0.08133655597365325, 0.0813281507477149, 0.08131975207403913, 0.08131135997441108, 0.081302974470128, 0.08129459558200675, 0.08128622333039096, 0.08127785773515889, 0.08126949881573024, 0.08126114659107316, 0.08125280107971176, 0.08124446229973266, 0.08123613026879199, 0.08122780500412145, 0.08121948652253584, 0.08121117484043817, 0.08120286997382782, 0.0811945719383052, 0.0811862807490785, 0.08117799642096982, 0.08116971896842087, 0.08116144840549903, 0.08115318474590331, 0.08114492800296928, 0.08113667818967539, 0.08112843531864809, 0.08112019940216751, 0.08111197045217247, 0.08110374848026575, 0.08109553349771975, 0.08108732551548054, 0.08107912454417403, 0.08107093059411007, 0.08106274367528737, 0.08105456379739887, 0.08104639096983546, 0.08103822520169163, 0.08103006650176905, 0.08102191487858182, 0.08101377034036036, 0.08100563289505598, 0.08099750255034512, 0.08098937931363352, 0.08098126319206012, 0.08097315419250194, 0.08096505232157686, 0.0809569575856486, 0.08094886999083044, 0.08094078954298813, 0.08093271624774523, 0.08092465011048523, 0.0809165911363565, 0.08090853933027517, 0.08090049469692846, 0.08089245724077926, 0.08088442696606807, 0.08087640387681781, 0.0808683879768363, 0.08086037926971969, 0.08085237775885581, 0.08084438344742736, 0.08083639633841494, 0.08082841643460037, 0.08082044373856928, 0.08081247825271487, 0.0808045199792398, 0.08079656892016006, 0.08078862507730758, 0.08078068845233281, 0.08077275904670762, 0.08076483686172779, 0.0807569218985167, 0.08074901415802654, 0.08074111364104232, 0.08073322034818331, 0.08072533427990598, 0.08071745543650717, 0.0807095838181256, 0.08070171942474492, 0.08069386225619567, 0.08068601231215776, 0.08067816959216315, 0.0806703340955979, 0.08066250582170435, 0.08065468476958336, 0.08064687093819643, 0.08063906432636839, 0.0806312649327887, 0.08062347275601457, 0.08061568779447173, 0.0806079100464575, 0.08060013951014258, 0.08059237618357293, 0.08058462006467182, 0.08057687115124122, 0.08056912944096457, 0.08056139493140796, 0.08055366762002238, 0.08054594750414562, 0.08053823458100333, 0.08053052884771142, 0.08052283030127778, 0.08051513893860394, 0.08050745475648666, 0.0804997777516194, 0.08049210792059436, 0.0804844452599038, 0.08047678976594189, 0.08046914143500643, 0.08046150026329944, 0.08045386624692975, 0.08044623938191416, 0.08043861966417873, 0.08043100708956061, 0.0804234016538092, 0.08041580335258744, 0.08040821218147333, 0.08040062813596197, 0.08039305121146595, 0.08038548140331703, 0.08037791870676772, 0.08037036311699192, 0.08036281462908741, 0.08035527323807612, 0.0803477389389052, 0.08034021172644928, 0.08033269159551049, 0.08032517854082104, 0.0803176725570431, 0.08031017363877076, 0.08030268178053059, 0.0802951969767832, 0.08028771922192453, 0.08028024851028669, 0.08027278483613857, 0.08026532819368792, 0.08025787857708122, 0.08025043598040606, 0.08024300039769117, 0.0802355718229075, 0.08022815024996992, 0.08022073567273727, 0.0802133280850141, 0.08020592748055139, 0.08019853385304697, 0.08019114719614742, 0.0801837675034482, 0.0801763947684949, 0.0801690289847841, 0.08016167014576422, 0.08015431824483615, 0.08014697327535451, 0.08013963523062853, 0.0801323041039224, 0.08012497988845649, 0.08011766257740786, 0.08011035216391126, 0.0801030486410601, 0.08009575200190705, 0.08008846223946438, 0.08008117934670549, 0.0800739033165649, 0.08006663414193974, 0.08005937181568991, 0.08005211633063897, 0.08004486767957496, 0.08003762585525065, 0.0800303908503848, 0.08002316265766288, 0.08001594126973699, 0.0800087266792271, 0.08000151887872142, 0.07999431786077771, 0.0799871236179229, 0.07997993614265447, 0.07997275542744069, 0.07996558146472113, 0.07995841424690783, 0.07995125376638546, 0.07994410001551172, 0.0799369529866184, 0.07992981267201141, 0.07992267906397199, 0.07991555215475649, 0.07990843193659762, 0.07990131840170463, 0.07989421154226375, 0.07988711135043892, 0.0798800178183722, 0.07987293093818437, 0.07986585070197524, 0.07985877710182422, 0.0798517101297912, 0.07984464977791617, 0.0798375960382206, 0.07983054890270717, 0.07982350836336076, 0.07981647441214879, 0.0798094470410212, 0.07980242624191164, 0.07979541200673734, 0.0797884043273998, 0.07978140319578501, 0.0797744086037642, 0.07976742054319377, 0.0797604390059162, 0.07975346398376022, 0.079746495468541, 0.07973953345206092, 0.07973257792610962, 0.07972562888246468, 0.07971868631289179, 0.0797117502091451, 0.07970482056296772, 0.07969789736609197, 0.07969098061023983, 0.07968407028712313, 0.07967716638844406, 0.07967026890589538, 0.0796633778311609, 0.07965649315591566, 0.07964961487182637, 0.07964274297055148, 0.07963587744374183, 0.0796290182830409, 0.07962216548008492, 0.07961531902650332, 0.07960847891391895, 0.07960164513394842, 0.07959481767820238, 0.07958799653828592, 0.07958118170579867, 0.07957437317233505, 0.0795675709294848, 0.07956077496883307, 0.07955398528196059, 0.07954720186044412, 0.0795404246958567, 0.07953365377976784, 0.0795268891037436, 0.07952013065934727, 0.07951337843813916, 0.0795066324316772, 0.07949989263151686, 0.07949315902921161, 0.07948643161631316, 0.07947971038437152, 0.07947299532493525, 0.07946628642955196, 0.079459583689768, 0.07945288709712939, 0.07944619664318128, 0.07943951231946875, 0.07943283411753652, 0.07942616202892959, 0.07941949604519337, 0.0794128361578734, 0.07940618235851633, 0.07939953463866936, 0.07939289298988095, 0.07938625740370073, 0.07937962787167983, 0.07937300438537093, 0.07936638693632861, 0.07935977551610926, 0.0793531701162716, 0.07934657072837656, 0.07933997734398755, 0.0793333899546707, 0.0793268085519949, 0.07932023312753197, 0.07931366367285704, 0.07930710017954833, 0.07930054263918758, 0.07929399104336014, 0.07928744538365518, 0.07928090565166546, 0.07927437183898815, 0.07926784393722441, 0.07926132193797975, 0.07925480583286407, 0.07924829561349195, 0.0792417912714827, 0.07923529279846042, 0.07922880018605422, 0.07922231342589839, 0.0792158325096324, 0.07920935742890117, 0.07920288817535495, 0.07919642474064977, 0.07918996711644731, 0.07918351529441509, 0.07917706926622672, 0.0791706290235616, 0.07916419455810567, 0.079157765861551, 0.07915134292559592, 0.07914492574194562, 0.07913851430231156, 0.0791321085984121, 0.07912570862197253, 0.07911931436472476, 0.07911292581840798, 0.07910654297476838, 0.07910016582555947, 0.07909379436254191, 0.07908742857748388, 0.0790810684621611, 0.07907471400835661, 0.07906836520786147, 0.07906202205247426, 0.07905568453400143, 0.07904935264425746, 0.07904302637506468, 0.07903670571825368, 0.07903039066566311, 0.07902408120913988, 0.07901777734053919, 0.07901147905172473, 0.07900518633456863, 0.07899889918095153, 0.07899261758276263, 0.07898634153190004, 0.07898007102027037, 0.07897380603978921, 0.07896754658238105, 0.07896129263997924, 0.07895504420452616, 0.07894880126797346, 0.07894256382228179, 0.07893633185942096, 0.07893010537137014, 0.07892388435011789, 0.0789176687876621, 0.07891145867601002, 0.07890525400717853, 0.07889905477319402, 0.07889286096609252, 0.07888667257791965, 0.0788804896007309, 0.07887431202659136, 0.07886813984757607, 0.07886197305576988, 0.07885581164326756, 0.07884965560217379, 0.07884350492460343, 0.07883735960268126, 0.07883121962854218, 0.07882508499433126, 0.0788189556922038, 0.07881283171432521, 0.0788067130528713, 0.07880059970002812, 0.07879449164799213, 0.0787883888889701, 0.07878229141517942, 0.07877619921884758, 0.078770112292213, 0.07876403062752432, 0.07875795421704096, 0.07875188305303282, 0.07874581712778049, 0.07873975643357527, 0.07873370096271907, 0.07872765070752469, 0.07872160566031554, 0.07871556581342591, 0.07870953115920094, 0.07870350168999651, 0.0786974773981796, 0.07869145827612786, 0.07868544431623004, 0.07867943551088578, 0.0786734318525057, 0.07866743333351156, 0.07866143994633598, 0.07865545168342276, 0.07864946853722674, 0.07864349050021388, 0.07863751756486126, 0.07863154972365713, 0.07862558696910085, 0.07861962929370304, 0.07861367668998553, 0.0786077291504813, 0.0786017866677347, 0.07859584923430116, 0.07858991684274755, 0.07858398948565197, 0.07857806715560388, 0.07857214984520405, 0.07856623754706456, 0.07856033025380885, 0.07855442795807176, 0.07854853065249955, 0.07854263832974978, 0.0785367509824916, 0.07853086860340529, 0.0785249911851829, 0.0785191187205277, 0.07851325120215456, 0.07850738862278962, 0.07850153097517075, 0.07849567825204716, 0.07848983044617959, 0.07848398755034018, 0.07847814955731286, 0.07847231645989279, 0.07846648825088681, 0.07846066492311332, 0.07845484646940225, 0.07844903288259485, 0.07844322415554429, 0.07843742028111515, 0.07843162125218345, 0.0784258270616369, 0.07842003770237485, 0.07841425316730813, 0.07840847344935915, 0.07840269854146209, 0.0783969284365625, 0.07839116312761751, 0.07838540260759597, 0.07837964686947843, 0.07837389590625675, 0.07836814971093452, 0.07836240827652709, 0.07835667159606124, 0.07835093966257536, 0.07834521246911957, 0.07833949000875548, 0.0783337722745563, 0.07832805925960684, 0.07832235095700367, 0.07831664735985475, 0.07831094846127963, 0.07830525425440975, 0.07829956473238783, 0.07829387988836833, 0.07828819971551731, 0.07828252420701247, 0.07827685335604287, 0.0782711871558093, 0.07826552559952421, 0.07825986868041146, 0.07825421639170661, 0.07824856872665663, 0.07824292567852027, 0.07823728724056761, 0.07823165340608057, 0.07822602416835224, 0.07822039952068764, 0.078214779456403, 0.07820916396882624, 0.07820355305129678, 0.07819794669716557, 0.07819234489979501, 0.07818674765255912, 0.07818115494884326, 0.07817556678204449, 0.0781699831455711, 0.07816440403284305, 0.07815882943729173, 0.07815325935235992, 0.07814769377150182, 0.0781421326881832, 0.07813657609588119, 0.0781310239880844, 0.07812547635829277, 0.07811993320001778, 0.07811439450678212, 0.07810886027212013, 0.07810333048957721, 0.07809780515271046, 0.07809228425508796, 0.07808676779028954, 0.07808125575190604, 0.07807574813353997, 0.07807024492880484, 0.07806474613132558, 0.07805925173473854, 0.07805376173269125, 0.0780482761188424, 0.07804279488686221, 0.07803731803043196, 0.07803184554324416, 0.07802637741900269, 0.07802091365142261, 0.07801545423423004, 0.07800999916116261, 0.07800454842596882, 0.07799910202240846, 0.07799365994425256, 0.07798822218528315, 0.07798278873929342, 0.07797735960008786, 0.07797193476148179, 0.07796651421730197, 0.07796109796138588, 0.07795568598758235, 0.07795027828975115, 0.0779448748617631, 0.07793947569750002, 0.07793408079085488, 0.07792869013573153, 0.07792330372604477, 0.0779179215557205, 0.07791254361869555, 0.07790716990891769, 0.07790180042034568, 0.07789643514694901, 0.07789107408270837, 0.07788571722161507, 0.0778803645576715, 0.07787501608489081, 0.07786967179729697, 0.07786433168892481, 0.07785899575382006, 0.07785366398603928, 0.07784833637964964, 0.07784301292872926, 0.07783769362736695, 0.07783237846966219, 0.07782706744972534, 0.07782176056167742, 0.07781645779965012, 0.0778111591577858, 0.0778058646302376, 0.07780057421116916, 0.07779528789475487, 0.07779000567517982, 0.07778472754663952, 0.07777945350334015, 0.07777418353949846, 0.07776891764934184, 0.07776365582710809, 0.07775839806704557, 0.07775314436341334, 0.07774789471048074, 0.07774264910252766, 0.07773740753384448, 0.07773216999873207, 0.07772693649150159, 0.07772170700647468, 0.07771648153798352, 0.07771126008037044, 0.07770604262798825, 0.07770082917520019, 0.07769561971637978, 0.0776904142459108, 0.07768521275818736, 0.07768001524761405, 0.07767482170860524, 0.0776696321355861, 0.07766444652299175, 0.07765926486526759, 0.07765408715686906, 0.07764891339226211, 0.0776437435659227, 0.07763857767233683, 0.07763341570600085, 0.07762825766142109, 0.07762310353311394, 0.07761795331560596, 0.07761280700343386, 0.07760766459114417, 0.07760252607329367, 0.07759739144444902, 0.077592260699187, 0.07758713383209428, 0.07758201083776754, 0.07757689171081339, 0.07757177644584841, 0.07756666503749901, 0.07756155748040154, 0.0775564537692023, 0.07755135389855727, 0.07754625786313246, 0.07754116565760376, 0.0775360772766566, 0.07753099271498642, 0.0775259119672984, 0.07752083502830748, 0.07751576189273827, 0.07751069255532517, 0.07750562701081232, 0.07750056525395335, 0.07749550727951184, 0.07749045308226098, 0.0774854026569833, 0.07748035599847138, 0.07747531310152711, 0.07747027396096207, 0.07746523857159741, 0.07746020692826376, 0.07745517902580128, 0.07745015485905984, 0.0774451344228986, 0.07744011771218628, 0.07743510472180101, 0.07743009544663047, 0.07742508988157179, 0.07742008802153132, 0.07741508986142497, 0.07741009539617792, 0.07740510462072482, 0.07740011753000961, 0.07739513411898549, 0.07739015438261508, 0.07738517831587025, 0.07738020591373213, 0.07737523717119113, 0.07737027208324687, 0.07736531064490816, 0.07736035285119304, 0.0773553986971288, 0.07735044817775179, 0.07734550128810756, 0.07734055802325088, 0.07733561837824546, 0.07733068234816418, 0.07732574992808919, 0.07732082111311142, 0.07731589589833095, 0.07731097427885686, 0.07730605624980738, 0.0773011418063096, 0.07729623094349966, 0.07729132365652253, 0.07728641994053227, 0.07728151979069178, 0.07727662320217295, 0.07727173017015652, 0.07726684068983197, 0.07726195475639794, 0.07725707236506157, 0.07725219351103904, 0.07724731818955526, 0.07724244639584393, 0.07723757812514752, 0.0772327133727173, 0.0772278521338132, 0.0772229944037039, 0.07721814017766682, 0.07721328945098799, 0.0772084422189621, 0.07720359847689265, 0.07719875822009156, 0.07719392144387947, 0.0771890881435857, 0.0771842583145479, 0.07717943195211256, 0.07717460905163458, 0.07716978960847744, 0.07716497361801301, 0.07716016107562178, 0.07715535197669278, 0.07715054631662331, 0.07714574409081923, 0.07714094529469491, 0.07713614992367288, 0.07713135797318435, 0.07712656943866868, 0.07712178431557377, 0.07711700259935572, 0.0771122242854791, 0.0771074493694166, 0.07710267784664938, 0.07709790971266682, 0.07709314496296656, 0.07708838359305441, 0.07708362559844455, 0.07707887097465925, 0.07707411971722895, 0.07706937182169248, 0.07706462728359655, 0.0770598860984962, 0.07705514826195453, 0.07705041376954279, 0.07704568261684029, 0.0770409547994344, 0.0770362303129206, 0.07703150915290237, 0.07702679131499127, 0.0770220767948068, 0.07701736558797653, 0.07701265769013596, 0.07700795309692852, 0.07700325180400575, 0.07699855380702687, 0.07699385910165929, 0.07698916768357805, 0.07698447954846628, 0.07697979469201485, 0.07697511310992246, 0.07697043479789585, 0.0769657597516493, 0.07696108796690507, 0.07695641943939319, 0.07695175416485132, 0.07694709213902509, 0.0769424333576677, 0.07693777781654013, 0.07693312551141104, 0.07692847643805678, 0.0769238305922614, 0.07691918796981663, 0.07691454856652175, 0.07690991237818376, 0.07690527940061717, 0.07690064962964423, 0.07689602306109461, 0.07689139969080556, 0.07688677951462206, 0.07688216252839641, 0.07687754872798845, 0.07687293810926567, 0.07686833066810288, 0.07686372640038241, 0.0768591253019941, 0.07685452736883512, 0.07684993259681017, 0.07684534098183128, 0.07684075251981791, 0.07683616720669686, 0.07683158503840233, 0.07682700601087579, 0.07682243012006618, 0.07681785736192955, 0.07681328773242949, 0.07680872122753662, 0.07680415784322903, 0.07679959757549196, 0.07679504042031791, 0.07679048637370663, 0.076785935431665, 0.07678138759020717, 0.07677684284535441, 0.07677230119313525, 0.07676776262958518, 0.07676322715074703, 0.07675869475267055, 0.07675416543141284, 0.0767496391830378, 0.07674511600361664, 0.07674059588922742, 0.07673607883595543, 0.07673156483989291, 0.07672705389713906, 0.07672254600380013, 0.0767180411559894, 0.07671353934982698, 0.07670904058144007, 0.07670454484696276, 0.07670005214253603, 0.07669556246430785, 0.07669107580843298, 0.0766865921710731, 0.07668211154839684, 0.07667763393657955, 0.07667315933180349, 0.07666868773025771, 0.07666421912813817, 0.07665975352164744, 0.07665529090699505, 0.07665083128039712, 0.0766463746380767, 0.07664192097626343, 0.07663747029119379, 0.07663302257911085, 0.07662857783626449, 0.07662413605891114, 0.076619697243314, 0.07661526138574291, 0.07661082848247437, 0.07660639852979131, 0.07660197152398356, 0.07659754746134728, 0.07659312633818545, 0.07658870815080743, 0.07658429289552919, 0.07657988056867326, 0.07657547116656874, 0.07657106468555118, 0.07656666112196255, 0.07656226047215149, 0.0765578627324729, 0.07655346789928835, 0.07654907596896571, 0.0765446869378793, 0.07654030080240987, 0.07653591755894461, 0.07653153720387705, 0.07652715973360705, 0.07652278514454099, 0.07651841343309139, 0.07651404459567727, 0.07650967862872393, 0.0765053155286629, 0.07650095529193211, 0.07649659791497569, 0.07649224339424408, 0.07648789172619395, 0.07648354290728827, 0.07647919693399614, 0.07647485380279295, 0.07647051351016022, 0.0764661760525858, 0.07646184142656352, 0.07645750962859348, 0.076453180655182, 0.07644885450284138, 0.07644453116809012, 0.07644021064745285, 0.07643589293746025, 0.07643157803464916, 0.07642726593556236, 0.07642295663674878, 0.07641865013476341, 0.0764143464261672, 0.07641004550752718, 0.07640574737541636, 0.07640145202641378, 0.07639715945710439, 0.07639286966407914, 0.07638858264393497, 0.07638429839327472, 0.0763800169087072, 0.07637573818684706, 0.07637146222431493, 0.07636718901773734, 0.07636291856374663, 0.07635865085898111, 0.07635438590008482, 0.07635012368370768, 0.07634586420650558, 0.07634160746514, 0.0763373534562784, 0.07633310217659393, 0.0763288536227656, 0.07632460779147816, 0.07632036467942205, 0.07631612428329355, 0.07631188659979464, 0.07630765162563297, 0.076303419357522]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/fixtures/python/runner.py new file mode 100644 index 000000000000..67e8390d0849 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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.var(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/variance/test/fixtures/python/small_c.json b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/fixtures/python/small_c.json new file mode 100644 index 000000000000..57f3eb1033c2 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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.08332071935277598, 0.0833205017746981, 0.083320282517676, 0.08332006158592618, 0.08331983898382318, 0.08331961471556325, 0.08331938878547959, 0.08331916119777548, 0.0833189319567568, 0.0833187010665565, 0.0833184685314803, 0.08331823435567717, 0.08331799854333063, 0.08331776109868042, 0.08331752202581282, 0.08331728132894418, 0.08331703901217041, 0.08331679507967303, 0.08331654953550245, 0.08331630238382401, 0.08331605362867764, 0.0833158032743222, 0.08331555132439719, 0.08331529778351345, 0.08331504265528042, 0.08331478594392062, 0.08331452765338929, 0.08331426778776127, 0.08331400635098175, 0.08331374334706675, 0.08331347877997357, 0.08331321265370281, 0.0833129449721525, 0.08331267573929788, 0.0833124049590459, 0.08331213263533423, 0.08331185877204776, 0.08331158337309733, 0.08331130644235117, 0.0833110279836819, 0.08331074800098862, 0.08331046649806155, 0.08331018347876852, 0.08330989894693014, 0.08330961290646831, 0.08330932536089426, 0.08330903631438875, 0.08330874577035491, 0.08330845373290086, 0.08330816020556472, 0.08330786519217459, 0.08330756869644826, 0.0833072707221601, 0.08330697127296909, 0.08330667035260783, 0.08330636796477976, 0.08330606411317296, 0.08330575880147675, 0.08330545203331814, 0.08330514381235973, 0.08330483414226858, 0.08330452302665702, 0.08330421046915922, 0.08330389647339562, 0.08330358104294341, 0.08330326418142614, 0.08330294589239101, 0.08330262617944321, 0.08330230504611645, 0.08330198249604588, 0.0833016585325771, 0.08330133315949019, 0.08330100638011036, 0.08330067819804218, 0.08330034861674229, 0.08330001763975316, 0.08329968527051068, 0.0832993515125127, 0.08329901636921096, 0.08329867984406465, 0.08329834194048864, 0.08329800266196627, 0.08329766201188739, 0.08329731999365933, 0.08329697661070219, 0.08329663186639269, 0.08329628576414375, 0.0832959383073005, 0.08329558949925149, 0.08329523934333066, 0.0832948878429008, 0.08329453500129005, 0.08329418082186961, 0.08329382530784143, 0.08329346846267535, 0.08329311028950005, 0.0832927507917766, 0.08329238997265452, 0.08329202783546082, 0.08329166438345124, 0.08329129961988524, 0.08329093354799179, 0.08329056617102423, 0.08329019749220559, 0.08328982751474343, 0.08328945624185867, 0.08328908367675104, 0.08328870982260386, 0.08328833468259818, 0.08328795825991475, 0.0832875805577069, 0.08328720157914823, 0.08328682132736638, 0.08328643980551716, 0.08328605701671404, 0.08328567296409085, 0.08328528765074311, 0.08328490107982615, 0.08328451325433045, 0.08328412417746855, 0.08328373385221843, 0.08328334228170019, 0.08328294946894664, 0.08328255541703591, 0.08328216012899878, 0.08328176360787752, 0.08328136585668461, 0.08328096687846452, 0.0832805666762065, 0.08328016525292174, 0.0832797626116036, 0.08327935875524031, 0.08327895368680555, 0.08327854740926906, 0.08327813992559216, 0.08327773123873333, 0.08327732135163611, 0.08327691026723646, 0.08327649798846194, 0.08327608451824013, 0.08327566985948107, 0.083275254015079, 0.08327483698797229, 0.08327441878097554, 0.08327399939705879, 0.08327357883902906, 0.0832731571097794, 0.08327273421215872, 0.08327231014902563, 0.08327188492322168, 0.0832714585375793, 0.08327103099492673, 0.08327060229809102, 0.08327017244987323, 0.0832697414530789, 0.08326930931050971, 0.08326887602495639, 0.08326844159919969, 0.08326800603600978, 0.08326756933815568, 0.08326713150839578, 0.08326669254948817, 0.08326625246416602, 0.08326581125517747, 0.08326536892524551, 0.08326492547711262, 0.08326448091344262, 0.08326403523701069, 0.08326358845044696, 0.08326314055651995, 0.08326269155783748, 0.083262241457152, 0.08326179025708257, 0.08326133796031829, 0.08326088456950631, 0.08326043008729755, 0.08325997451634563, 0.08325951785927435, 0.08325906011872289, 0.0832586012973062, 0.08325814139764054, 0.08325768042233701, 0.0832572183739959, 0.08325675525520151, 0.0832562910685597, 0.08325582581663593, 0.08325535950202334, 0.0832548921272468, 0.08325442369492446, 0.08325395420754698, 0.08325348366772793, 0.08325301207793721, 0.08325253944077268, 0.08325206575869903, 0.08325159103429414, 0.08325111527002763, 0.08325063846842594, 0.08325016063198336, 0.0832496817631903, 0.08324920186454066, 0.08324872093850338, 0.08324823898756352, 0.08324775601418477, 0.08324727202082184, 0.08324678700992925, 0.08324630098396069, 0.08324581394535024, 0.08324532589653445, 0.08324483683994356, 0.08324434677800206, 0.0832438557131151, 0.08324336364770842, 0.08324287058415618, 0.08324237652489405, 0.08324188147227021, 0.08324138542870639, 0.08324088839654331, 0.08324039037819625, 0.08323989137598148, 0.08323939139230062, 0.08323889042948085, 0.08323838848988059, 0.08323788557582781, 0.08323738168967305, 0.0832368768337398, 0.08323637101034295, 0.08323586422180139, 0.08323535647043473, 0.08323484775854018, 0.08323433808841098, 0.08323382746234685, 0.08323331588263423, 0.08323280335154991, 0.08323228987137174, 0.08323177544437509, 0.08323126007279799, 0.08323074375892953, 0.0832302265049893, 0.08322970831325573, 0.08322918918593351, 0.08322866912529435, 0.08322814813352596, 0.08322762621288722, 0.08322710336556656, 0.08322657959378997, 0.08322605489975594, 0.08322552928566622, 0.08322500275371346, 0.0832244753060938, 0.08322394694497776, 0.0832234176725471, 0.08322288749097496, 0.08322235640242362, 0.08322182440905752, 0.08322129151302661, 0.08322075771647938, 0.08322022302156565, 0.08321968743041848, 0.08321915094516967, 0.08321861356795685, 0.0832180753008804, 0.0832175361460846, 0.08321699610565027, 0.08321645518171226, 0.08321591337634034, 0.08321537069166118, 0.08321482712973328, 0.08321428269266772, 0.0832137373825259, 0.08321319120139004, 0.08321264415132051, 0.08321209623438652, 0.08321154745264475, 0.08321099780814774, 0.08321044730294319, 0.08320989593906813, 0.08320934371856638, 0.08320879064346685, 0.0832082367157992, 0.08320768193757656, 0.08320712631082346, 0.08320656983754453, 0.08320601251976127, 0.08320545435944937, 0.08320489535863052, 0.08320433551927407, 0.08320377484338613, 0.08320321333292781, 0.0832026509898965, 0.08320208781623914, 0.0832015238139472, 0.08320095898495829, 0.08320039333125011, 0.0831998268547516, 0.0831992595574268, 0.08319869144121303, 0.08319812250804208, 0.08319755275984962, 0.0831969821985616, 0.0831964108261025, 0.08319583864438383, 0.08319526565532137, 0.08319469186082692, 0.0831941172627972, 0.08319354186313123, 0.08319296566372689, 0.08319238866646321, 0.08319181087324029, 0.08319123228591634, 0.0831906529063901, 0.08319007273650611, 0.08318949177815464, 0.08318891003317123, 0.0831883275034371, 0.0831877441907786, 0.08318716009706782, 0.08318657522412096, 0.08318598957379773, 0.08318540314791738, 0.08318481594831667, 0.08318422797681635, 0.08318363923523125, 0.0831830497253807, 0.08318245944907728, 0.08318186840812444, 0.0831812766043227, 0.08318068403946718, 0.08318009071535774, 0.08317949663377736, 0.08317890179650396, 0.0831783062053344, 0.08317770986202236, 0.08317711276835674, 0.08317651492608606, 0.08317591633699085, 0.08317531700281029, 0.08317471692531514, 0.08317411610623664, 0.08317351454733624, 0.08317291225033908, 0.08317230921699588, 0.08317170544902557, 0.08317110094816055, 0.08317049571612438, 0.08316988975463761, 0.08316928306541317, 0.08316867565016, 0.08316806751058654, 0.08316745864839524, 0.08316684906528388, 0.08316623876294504, 0.08316562774306951, 0.08316501600734466, 0.08316440355745036, 0.08316379039505689, 0.0831631765218547, 0.08316256193949373, 0.08316194664965716, 0.0831613306539883, 0.08316071395416158, 0.08316009655181261, 0.08315947844860737, 0.08315885964617407, 0.08315824014617282, 0.0831576199502202, 0.08315699905996528, 0.08315637747702942, 0.08315575520303915, 0.08315513223961571, 0.08315450858837707, 0.08315388425093634, 0.083153259228902, 0.08315263352387849, 0.08315200713747221, 0.08315138007127654, 0.08315075232688501, 0.08315012390588983, 0.0831494948098767, 0.08314886504043312, 0.08314823459912368, 0.08314760348753922, 0.08314697170723645, 0.08314633925979763, 0.08314570614677005, 0.08314507236972801, 0.08314443793021466, 0.08314380282979439, 0.08314316707000356, 0.08314253065239881, 0.08314189357850826, 0.0831412558498798, 0.08314061746804374, 0.08313997843452668, 0.08313933875085949, 0.08313869841856296, 0.08313805743915499, 0.08313741581415186, 0.08313677354506371, 0.08313613063340246, 0.08313548708066959, 0.08313484288836619, 0.08313419805799081, 0.08313355259103201, 0.08313290648899009, 0.08313225975334022, 0.08313161238557637, 0.08313096438716584, 0.08313031575959832, 0.08312966650433139, 0.0831290166228487, 0.08312836611660299, 0.08312771498706814, 0.08312706323569, 0.0831264108639347, 0.08312575787324716, 0.08312510426507891, 0.08312445004087295, 0.08312379520206947, 0.08312313975010772, 0.08312248368642307, 0.08312182701244601, 0.0831211697296032, 0.08312051183931882, 0.0831198533430155, 0.08311919424210965, 0.08311853453801278, 0.0831178742321437, 0.08311721332589843, 0.08311655182069344, 0.08311588971791806, 0.08311522701898096, 0.08311456372526432, 0.08311389983817219, 0.0831132353590802, 0.08311257028938338, 0.08311190463045214, 0.08311123838367616, 0.08311057155042012, 0.08310990413206046, 0.08310923612996401, 0.08310856754549724, 0.08310789838002147, 0.08310722863489389, 0.08310655831146983, 0.08310588741110496, 0.08310521593514404, 0.08310454388493686, 0.0831038712618217, 0.08310319806714357, 0.08310252430223682, 0.08310184996843027, 0.08310117506706347, 0.08310049959945327, 0.08309982356693447, 0.08309914697081504, 0.08309846981242806, 0.08309779209307463, 0.08309711381407663, 0.08309643497673413, 0.08309575558236132, 0.08309507563225185, 0.08309439512771451, 0.08309371407004021, 0.08309303246052248, 0.08309235030045423, 0.08309166759112147, 0.08309098433381071, 0.08309030052979939, 0.08308961618036936, 0.083088931286796, 0.08308824585035213, 0.08308755987230566, 0.08308687335392352, 0.08308618629647051, 0.08308549870121072, 0.08308481056939508, 0.08308412190228692, 0.08308343270112901, 0.08308274296718042, 0.0830820527016781, 0.08308136190587458, 0.08308067058100232, 0.08307997872830768, 0.08307928634901536, 0.08307859344436926, 0.08307790001558693, 0.08307720606390252, 0.08307651159053803, 0.08307581659671179, 0.08307512108364432, 0.08307442505255005, 0.08307372850464217, 0.08307303144112775, 0.08307233386321579, 0.08307163577211026, 0.0830709371690127, 0.0830702380551197, 0.08306953843162983, 0.08306883829973152, 0.08306813766062149, 0.08306743651548038, 0.08306673486550019, 0.08306603271185632, 0.08306533005573458, 0.08306462689830556, 0.08306392324074946, 0.0830632190842307, 0.08306251442992561, 0.08306180927899215, 0.08306110363260154, 0.0830603974919082, 0.08305969085807526, 0.0830589837322554, 0.08305827611560065, 0.0830575680092622, 0.08305685941438808, 0.083056150332124, 0.08305544076360946, 0.08305473070998608, 0.08305402017239182, 0.08305330915195976, 0.08305259764982294, 0.08305188566711026, 0.08305117320494576, 0.08305046026446128, 0.08304974684676952, 0.08304903295299843, 0.083048318584255, 0.08304760374166402, 0.08304688842632756, 0.08304617263936247, 0.08304545638186778, 0.08304473965495625, 0.08304402245972109, 0.0830433047972674, 0.08304258666868831, 0.08304186807508074, 0.08304114901753405, 0.08304042949713739, 0.08303970951497962, 0.08303898907214409, 0.08303826816971245, 0.08303754680876471, 0.08303682499037579, 0.08303610271562284, 0.08303537998557822, 0.08303465680130812, 0.0830339331638856, 0.08303320907436858, 0.08303248453382707, 0.08303175954331406, 0.08303103410389409, 0.08303030821661689, 0.08302958188253991, 0.08302885510270976, 0.08302812787818026, 0.08302740020999012, 0.08302667209919147, 0.08302594354681693, 0.08302521455391318, 0.08302448512151045, 0.08302375525064856, 0.08302302494235667, 0.08302229419766431, 0.0830215630175989, 0.08302083140318763, 0.08302009935545125, 0.08301936687541094, 0.08301863396408471, 0.08301790062248927, 0.08301716685163894, 0.08301643265254349, 0.08301569802621271, 0.08301496297365427, 0.08301422749587413, 0.08301349159387025, 0.08301275526864953, 0.08301201852120256, 0.08301128135253275, 0.08301054376362747, 0.08300980575548383, 0.08300906732908463, 0.08300832848542332, 0.08300758922547999, 0.08300684955024099, 0.08300610946068256, 0.08300536895778758, 0.08300462804252955, 0.08300388671588296, 0.08300314497881923, 0.08300240283230954, 0.08300166027732078, 0.08300091731481701, 0.08300017394576274, 0.08299943017111991, 0.08299868599184619, 0.08299794140889856, 0.08299719642323365, 0.08299645103580006, 0.08299570524755473, 0.08299495905943936, 0.08299421247240651, 0.08299346548739464, 0.08299271810535208, 0.08299197032721296, 0.0829912221539216, 0.08299047358640729, 0.08298972462561138, 0.0829889752724587, 0.08298822552788448, 0.08298747539281359, 0.08298672486817431, 0.082985973954889, 0.08298522265387753, 0.0829844709660624, 0.08298371889236143, 0.08298296643368971, 0.08298221359095906, 0.08298146036508366, 0.08298070675697249, 0.08297995276753486, 0.08297919839767227, 0.08297844364829321, 0.082977688520295, 0.08297693301458318, 0.08297617713204913, 0.08297542087359498, 0.0829746642401095, 0.08297390723248828, 0.0829731498516183, 0.08297239209839143, 0.0829716339736898, 0.0829708754784024, 0.08297011661340686, 0.08296935737958473, 0.08296859777781604, 0.08296783780897767, 0.08296707747394326, 0.08296631677358467, 0.08296555570877395, 0.08296479428038024, 0.08296403248927052, 0.08296327033630983, 0.08296250782236082, 0.08296174494828602, 0.08296098171494523, 0.08296021812319386, 0.08295945417389174, 0.08295868986788874, 0.08295792520604187, 0.08295716018919552, 0.08295639481820379, 0.0829556290939086, 0.08295486301715947, 0.08295409658879471, 0.08295332980965942, 0.08295256268059013, 0.082951795202427, 0.08295102737600449, 0.08295025920215521, 0.08294949068171319, 0.08294872181550891, 0.08294795260436955, 0.08294718304912299, 0.08294641315059316, 0.08294564290960467, 0.08294487232697788, 0.08294410140353262, 0.08294333014008774, 0.08294255853745824, 0.08294178659646012, 0.08294101431790325, 0.08294024170260232, 0.08293946875136306, 0.08293869546499594, 0.08293792184430254, 0.08293714789009227, 0.0829363736031619, 0.08293559898431653, 0.08293482403435128, 0.08293404875406743, 0.08293327314425585, 0.08293249720571351, 0.08293172093923175, 0.08293094434559961, 0.08293016742560577, 0.08292939018003988, 0.08292861260968386, 0.08292783471532376, 0.0829270564977397, 0.08292627795771279, 0.08292549909602183, 0.08292471991344318, 0.08292394041075304, 0.08292316058872228, 0.08292238044812811, 0.08292159998973456, 0.08292081921431572, 0.08292003812263406, 0.08291925671545965, 0.08291847499355126, 0.0829176929576758, 0.08291691060859008, 0.0829161279470557, 0.08291534497382781, 0.08291456168966399, 0.08291377809531718, 0.08291299419154091, 0.08291220997908465, 0.0829114254586983, 0.08291064063112931, 0.08290985549712487, 0.08290907005742883, 0.08290828431278367, 0.0829074982639312, 0.08290671191161199, 0.08290592525656333, 0.08290513829952156, 0.08290435104122432, 0.0829035634824014, 0.0829027756237883, 0.08290198746611262, 0.08290119901010645, 0.08290041025649389, 0.08289962120600416, 0.08289883185935751, 0.08289804221728177, 0.08289725228049344, 0.0828964620497165, 0.08289567152566513, 0.0828948807090591, 0.08289408960061197, 0.082893298201039, 0.08289250651105139, 0.08289171453135974, 0.08289092226267317, 0.08289012970570092, 0.08288933686114802, 0.08288854372971871, 0.08288775031211679, 0.0828869566090448, 0.08288616262120341, 0.08288536834928861, 0.08288457379400176, 0.08288377895603545, 0.0828829838360869, 0.08288218843484584, 0.08288139275300811, 0.08288059679126002, 0.08287980055029265, 0.08287900403079136, 0.08287820723344456, 0.08287741015893324, 0.08287661280794391, 0.08287581518115572, 0.08287501727924831, 0.08287421910290224, 0.08287342065279452, 0.08287262192959965, 0.08287182293399237, 0.08287102366664709, 0.08287022412823386, 0.08286942431942447, 0.08286862424088562, 0.08286782389328579, 0.08286702327729127, 0.08286622239356772, 0.08286542124277589, 0.08286461982558027, 0.08286381814263862, 0.08286301619461289, 0.0828622139821579, 0.08286141150593361, 0.08286060876659136, 0.08285980576478841, 0.08285900250117274, 0.08285819897640037, 0.08285739519111615, 0.08285659114597144, 0.08285578684161249, 0.08285498227868429, 0.08285417745783112, 0.08285337237969667, 0.0828525670449219, 0.0828517614541465, 0.08285095560801048, 0.08285014950715107, 0.08284934315220474, 0.08284853654380578, 0.08284772968258784, 0.08284692256918331, 0.08284611520422522, 0.08284530758833984, 0.08284449972215836, 0.08284369160630575, 0.08284288324141018, 0.0828420746280938, 0.0828412657669825, 0.08284045665869524, 0.08283964730385558, 0.0828388377030807, 0.08283802785699036, 0.08283721776619969, 0.08283640743132613, 0.08283559685298236, 0.0828347860317824, 0.08283397496833796, 0.08283316366325946, 0.0828323521171565, 0.08283154033063592, 0.08283072830430571, 0.08282991603877134, 0.08282910353463677, 0.08282829079250431, 0.08282747781297725, 0.08282666459665425, 0.08282585114413717, 0.08282503745602178, 0.08282422353290698, 0.08282340937538582, 0.08282259498405638, 0.08282178035950774, 0.08282096550233557, 0.08282015041312789, 0.08281933509247642, 0.08281851954096725, 0.08281770375919033, 0.08281688774772895, 0.08281607150717028, 0.08281525503809656, 0.08281443834108951, 0.08281362141673203, 0.08281280426560302, 0.08281198688828144, 0.08281116928534492, 0.08281035145737037, 0.08280953340493306, 0.08280871512860681, 0.08280789662896362, 0.08280707790657785, 0.08280625896201693, 0.08280543979585353, 0.0828046204086528, 0.08280380080098498, 0.08280298097341261, 0.08280216092650444, 0.08280134066082057, 0.08280052017692663, 0.08279969947538089, 0.08279887855674653, 0.08279805742158058, 0.08279723607044183, 0.08279641450388696, 0.08279559272247196, 0.08279477072675201, 0.0827939485172789, 0.08279312609460625, 0.08279230345928468, 0.0827914806118653, 0.08279065755289591, 0.08278983428292425, 0.08278901080249879, 0.08278818711216417, 0.08278736321246344, 0.0827865391039432, 0.08278571478714254, 0.08278489026260581, 0.0827840655308701, 0.08278324059247777, 0.0827824154479635, 0.08278159009786679, 0.08278076454272175, 0.0827799387830646, 0.08277911281942738, 0.08277828665234399, 0.08277746028234524, 0.08277663370996159, 0.0827758069357229, 0.08277497996015705, 0.08277415278379147, 0.08277332540715188, 0.08277249783076324, 0.08277167005515089, 0.0827708420808369, 0.08277001390834289, 0.08276918553819045, 0.08276835697089854, 0.0827675282069879, 0.08276669924697348, 0.08276587009137497, 0.082765040740705, 0.08276421119548152, 0.08276338145621441, 0.08276255152342012, 0.08276172139760675, 0.08276089107928768, 0.08276006056896978, 0.0827592298671644, 0.08275839897437565, 0.08275756789111278, 0.08275673661788079, 0.0827559051551827, 0.08275507350352235, 0.08275424166340335, 0.08275340963532646, 0.08275257741979117, 0.08275174501729715, 0.08275091242834401, 0.08275007965342836, 0.08274924669304606, 0.08274841354769341, 0.08274758021786388, 0.08274674670405223, 0.08274591300674926, 0.08274507912644796, 0.08274424506363726, 0.08274341081880865, 0.0827425763924485, 0.08274174178504634, 0.0827409069970869, 0.08274007202905735, 0.08273923688144134, 0.08273840155472288, 0.0827375660493846, 0.08273673036590852, 0.0827358945047753, 0.08273505846646413, 0.08273422225145466, 0.08273338586022473, 0.08273254929325156, 0.08273171255101026, 0.08273087563397633, 0.08273003854262433, 0.08272920127742717, 0.08272836383885675, 0.08272752622738522, 0.08272668844348169, 0.08272585048761759, 0.08272501236025886, 0.0827241740618759, 0.08272333559293223, 0.08272249695389679, 0.0827216581452315, 0.0827208191674029, 0.08271998002087196, 0.08271914070610188, 0.08271830122355302, 0.08271746157368581, 0.08271662175695983, 0.08271578177383339, 0.08271494162476463, 0.08271410131020882, 0.08271326083062201, 0.08271242018645983, 0.08271157937817583, 0.08271073840622213, 0.08270989727105188, 0.08270905597311608, 0.08270821451286509, 0.08270737289074721, 0.08270653110721293, 0.08270568916270808, 0.08270484705768126, 0.08270400479257603, 0.08270316236783988, 0.08270231978391482, 0.08270147704124661, 0.08270063414027413, 0.08269979108144239, 0.08269894786518989, 0.08269810449195707, 0.08269726096218308, 0.08269641727630549, 0.08269557343476187, 0.08269472943798817, 0.08269388528642078, 0.08269304098049268, 0.08269219652063872, 0.08269135190729258, 0.08269050714088456, 0.08268966222184669, 0.08268881715060994, 0.08268797192760292, 0.08268712655325532, 0.08268628102799307, 0.08268543535224539, 0.08268458952643667, 0.0826837435509938, 0.08268289742633986, 0.08268205115289982, 0.08268120473109489, 0.0826803581613491, 0.0826795114440817, 0.08267866457971489, 0.0826778175686662, 0.08267697041135552, 0.08267612310820116, 0.08267527565961875, 0.08267442806602539, 0.08267358032783713]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/test.js new file mode 100644 index 000000000000..e2e75c23336b --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bradford/variance/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 variance = 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 variance, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for `c`, the function returns `NaN`', function test( t ) { + var v = variance( 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 = variance( 0.0 ); + t.equal( isnan( v ), true, 'returns expected value' ); + + v = variance( -1.0 ); + t.equal( isnan( v ), true, 'returns expected value' ); + + v = variance( NINF ); + t.equal( isnan( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the variance 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 = variance( 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 = 643.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 variance 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 = variance( 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 = 15.2 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + t.end(); +});