@stdlib/math-base-special-kernel-betaincinv 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CITATION.cff +30 -0
- package/LICENSE +3 -275
- package/NOTICE +1 -1
- package/README.md +23 -18
- package/dist/index.d.ts +3 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +7 -0
- package/docs/types/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/polyval_co1.js +1 -2
- package/lib/polyval_co10.js +1 -2
- package/lib/polyval_co11.js +1 -2
- package/lib/polyval_co12.js +1 -2
- package/lib/polyval_co13.js +1 -2
- package/lib/polyval_co14.js +1 -2
- package/lib/polyval_co15.js +1 -2
- package/lib/polyval_co16.js +1 -2
- package/lib/polyval_co17.js +1 -2
- package/lib/polyval_co18.js +1 -2
- package/lib/polyval_co19.js +1 -2
- package/lib/polyval_co2.js +1 -2
- package/lib/polyval_co20.js +1 -2
- package/lib/polyval_co21.js +1 -2
- package/lib/polyval_co22.js +1 -2
- package/lib/polyval_co3.js +1 -2
- package/lib/polyval_co4.js +1 -2
- package/lib/polyval_co5.js +1 -2
- package/lib/polyval_co6.js +1 -2
- package/lib/polyval_co7.js +1 -2
- package/lib/polyval_co8.js +1 -2
- package/lib/polyval_co9.js +1 -2
- package/package.json +43 -42
- package/docs/repl.txt +0 -39
- package/docs/types/test.ts +0 -66
- /package/lib/{kernel_betaincinv.js → main.js} +0 -0
package/lib/polyval_co22.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co8.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/lib/polyval_co9.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Apache-2.0
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
*
|
|
31
31
|
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
33
|
* @private
|
|
35
34
|
* @param {number} x - value at which to evaluate the polynomial
|
|
36
35
|
* @returns {number} evaluated polynomial
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-special-kernel-betaincinv",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Inverse incomplete beta function.",
|
|
5
5
|
"license": "Apache-2.0 AND BSL-1.0",
|
|
6
6
|
"author": {
|
|
@@ -38,49 +38,50 @@
|
|
|
38
38
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@stdlib/constants-float64-eps": "^0.0
|
|
42
|
-
"@stdlib/constants-float64-half-pi": "^0.0
|
|
43
|
-
"@stdlib/constants-float64-max": "^0.0
|
|
44
|
-
"@stdlib/constants-float64-pi": "^0.0
|
|
45
|
-
"@stdlib/constants-float64-smallest-normal": "^0.0
|
|
46
|
-
"@stdlib/constants-float64-smallest-subnormal": "^0.0
|
|
47
|
-
"@stdlib/constants-float64-sqrt-two": "^0.0
|
|
48
|
-
"@stdlib/math-base-special-abs": "^0.0
|
|
49
|
-
"@stdlib/math-base-special-acos": "^0.0
|
|
50
|
-
"@stdlib/math-base-special-asin": "^0.0
|
|
51
|
-
"@stdlib/math-base-special-beta": "^0.0
|
|
52
|
-
"@stdlib/math-base-special-betainc": "^0.0
|
|
53
|
-
"@stdlib/math-base-special-cos": "^0.0
|
|
54
|
-
"@stdlib/math-base-special-erfcinv": "^0.0
|
|
55
|
-
"@stdlib/math-base-special-exp": "^0.0
|
|
56
|
-
"@stdlib/math-base-special-expm1": "^0.0
|
|
57
|
-
"@stdlib/math-base-special-floor": "^0.0
|
|
58
|
-
"@stdlib/math-base-special-gamma-delta-ratio": "^0.0
|
|
59
|
-
"@stdlib/math-base-special-gammaincinv": "^0.0
|
|
60
|
-
"@stdlib/math-base-special-kernel-betainc": "^0.0
|
|
61
|
-
"@stdlib/math-base-special-ldexp": "^0.0
|
|
62
|
-
"@stdlib/math-base-special-ln": "^0.0
|
|
63
|
-
"@stdlib/math-base-special-log1p": "^0.0
|
|
64
|
-
"@stdlib/math-base-special-max": "^0.0
|
|
65
|
-
"@stdlib/math-base-special-min": "^0.0
|
|
66
|
-
"@stdlib/math-base-special-pow": "^0.0
|
|
67
|
-
"@stdlib/math-base-special-round": "^0.0
|
|
68
|
-
"@stdlib/math-base-special-signum": "^0.0
|
|
69
|
-
"@stdlib/math-base-special-sin": "^0.0
|
|
70
|
-
"@stdlib/math-base-special-sqrt": "^0.0
|
|
71
|
-
"@stdlib/math-base-tools-evalpoly": "^0.0
|
|
41
|
+
"@stdlib/constants-float64-eps": "^0.1.0",
|
|
42
|
+
"@stdlib/constants-float64-half-pi": "^0.1.0",
|
|
43
|
+
"@stdlib/constants-float64-max": "^0.1.0",
|
|
44
|
+
"@stdlib/constants-float64-pi": "^0.1.0",
|
|
45
|
+
"@stdlib/constants-float64-smallest-normal": "^0.1.0",
|
|
46
|
+
"@stdlib/constants-float64-smallest-subnormal": "^0.1.0",
|
|
47
|
+
"@stdlib/constants-float64-sqrt-two": "^0.1.0",
|
|
48
|
+
"@stdlib/math-base-special-abs": "^0.1.0",
|
|
49
|
+
"@stdlib/math-base-special-acos": "^0.1.0",
|
|
50
|
+
"@stdlib/math-base-special-asin": "^0.1.0",
|
|
51
|
+
"@stdlib/math-base-special-beta": "^0.1.0",
|
|
52
|
+
"@stdlib/math-base-special-betainc": "^0.1.0",
|
|
53
|
+
"@stdlib/math-base-special-cos": "^0.1.0",
|
|
54
|
+
"@stdlib/math-base-special-erfcinv": "^0.1.0",
|
|
55
|
+
"@stdlib/math-base-special-exp": "^0.1.0",
|
|
56
|
+
"@stdlib/math-base-special-expm1": "^0.1.0",
|
|
57
|
+
"@stdlib/math-base-special-floor": "^0.1.0",
|
|
58
|
+
"@stdlib/math-base-special-gamma-delta-ratio": "^0.1.0",
|
|
59
|
+
"@stdlib/math-base-special-gammaincinv": "^0.1.0",
|
|
60
|
+
"@stdlib/math-base-special-kernel-betainc": "^0.1.0",
|
|
61
|
+
"@stdlib/math-base-special-ldexp": "^0.1.0",
|
|
62
|
+
"@stdlib/math-base-special-ln": "^0.1.0",
|
|
63
|
+
"@stdlib/math-base-special-log1p": "^0.1.0",
|
|
64
|
+
"@stdlib/math-base-special-max": "^0.1.0",
|
|
65
|
+
"@stdlib/math-base-special-min": "^0.1.0",
|
|
66
|
+
"@stdlib/math-base-special-pow": "^0.1.0",
|
|
67
|
+
"@stdlib/math-base-special-round": "^0.1.0",
|
|
68
|
+
"@stdlib/math-base-special-signum": "^0.1.0",
|
|
69
|
+
"@stdlib/math-base-special-sin": "^0.1.0",
|
|
70
|
+
"@stdlib/math-base-special-sqrt": "^0.1.0",
|
|
71
|
+
"@stdlib/math-base-tools-evalpoly": "^0.1.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@stdlib/assert-is-number-array": "^0.0
|
|
75
|
-
"@stdlib/bench": "^0.0
|
|
76
|
-
"@stdlib/fs-write-file": "^0.0
|
|
77
|
-
"@stdlib/math-base-tools-continued-fraction": "^0.0
|
|
78
|
-
"@stdlib/math-base-tools-evalpoly-compile": "^0.0
|
|
79
|
-
"@stdlib/math-base-tools-sum-series": "^0.0
|
|
80
|
-
"@stdlib/random-base-randu": "^0.0.
|
|
74
|
+
"@stdlib/assert-is-number-array": "^0.1.0",
|
|
75
|
+
"@stdlib/bench": "^0.1.0",
|
|
76
|
+
"@stdlib/fs-write-file": "^0.1.0",
|
|
77
|
+
"@stdlib/math-base-tools-continued-fraction": "^0.1.0",
|
|
78
|
+
"@stdlib/math-base-tools-evalpoly-compile": "^0.1.0",
|
|
79
|
+
"@stdlib/math-base-tools-sum-series": "^0.1.0",
|
|
80
|
+
"@stdlib/random-base-randu": "^0.0.8",
|
|
81
|
+
"@stdlib/time-current-year": "^0.1.0",
|
|
81
82
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
82
83
|
"istanbul": "^0.4.1",
|
|
83
|
-
"tap-
|
|
84
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
84
85
|
},
|
|
85
86
|
"engines": {
|
|
86
87
|
"node": ">=0.10.0",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"kernel"
|
|
114
115
|
],
|
|
115
116
|
"funding": {
|
|
116
|
-
"type": "
|
|
117
|
-
"url": "https://
|
|
117
|
+
"type": "opencollective",
|
|
118
|
+
"url": "https://opencollective.com/stdlib"
|
|
118
119
|
}
|
|
119
120
|
}
|
package/docs/repl.txt
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
{{alias}}( a, b, p, q )
|
|
3
|
-
Computes the inverse of the lower incomplete beta function.
|
|
4
|
-
|
|
5
|
-
Probabilities `p` and `q` must satisfy `p = 1 - q`.
|
|
6
|
-
|
|
7
|
-
Parameters
|
|
8
|
-
----------
|
|
9
|
-
a: number
|
|
10
|
-
First function parameter (a positive number).
|
|
11
|
-
|
|
12
|
-
b: number
|
|
13
|
-
Second function parameter (a positive number).
|
|
14
|
-
|
|
15
|
-
p: number
|
|
16
|
-
Probability.
|
|
17
|
-
|
|
18
|
-
q: number
|
|
19
|
-
Probability equal to `1-p`.
|
|
20
|
-
|
|
21
|
-
Returns
|
|
22
|
-
-------
|
|
23
|
-
out: Array
|
|
24
|
-
Two-element array holding function value `y` and `1-y`.
|
|
25
|
-
|
|
26
|
-
Examples
|
|
27
|
-
--------
|
|
28
|
-
> var y = {{alias}}( 3.0, 3.0, 0.2, 0.8 )
|
|
29
|
-
[ ~0.327, ~0.673 ]
|
|
30
|
-
> y = {{alias}}( 3.0, 3.0, 0.4, 0.6 )
|
|
31
|
-
[ ~0.446, ~0.554 ]
|
|
32
|
-
> y = {{alias}}( 1.0, 6.0, 0.4, 0.6 )
|
|
33
|
-
[ ~0.082, ~0.918 ]
|
|
34
|
-
> y = {{alias}}( 1.0, 6.0, 0.8, 0.2 )
|
|
35
|
-
[ ~0.235, ~0.765 ]
|
|
36
|
-
|
|
37
|
-
See Also
|
|
38
|
-
--------
|
|
39
|
-
|
package/docs/types/test.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @license Apache-2.0
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2019 The Stdlib Authors.
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
import kernelBetaincinv = require( './index' );
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// TESTS //
|
|
23
|
-
|
|
24
|
-
// The function returns an array of numbers...
|
|
25
|
-
{
|
|
26
|
-
kernelBetaincinv( 3.0, 3.0, 0.2, 0.8 ); // $ExpectType number[]
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// The function does not compile if provided values other than four numbers...
|
|
30
|
-
{
|
|
31
|
-
kernelBetaincinv( true, 3, 0.2, 0.8 ); // $ExpectError
|
|
32
|
-
kernelBetaincinv( false, 2, 0.2, 0.8 ); // $ExpectError
|
|
33
|
-
kernelBetaincinv( '5', 1, 0.2, 0.8 ); // $ExpectError
|
|
34
|
-
kernelBetaincinv( [], 1, 0.2, 0.8 ); // $ExpectError
|
|
35
|
-
kernelBetaincinv( {}, 2, 0.2, 0.8 ); // $ExpectError
|
|
36
|
-
kernelBetaincinv( ( x: number ): number => x, 2, 0.2, 0.8 ); // $ExpectError
|
|
37
|
-
|
|
38
|
-
kernelBetaincinv( 9, true, 0.2, 0.8 ); // $ExpectError
|
|
39
|
-
kernelBetaincinv( 9, false, 0.2, 0.8 ); // $ExpectError
|
|
40
|
-
kernelBetaincinv( 5, '5', 0.2, 0.8 ); // $ExpectError
|
|
41
|
-
kernelBetaincinv( 8, [], 0.2, 0.8 ); // $ExpectError
|
|
42
|
-
kernelBetaincinv( 9, {}, 0.2, 0.8 ); // $ExpectError
|
|
43
|
-
kernelBetaincinv( 8, ( x: number ): number => x, 0.2, 0.8 ); // $ExpectError
|
|
44
|
-
|
|
45
|
-
kernelBetaincinv( 9, 3, true, 0.2 ); // $ExpectError
|
|
46
|
-
kernelBetaincinv( 9, 3, false, 0.2 ); // $ExpectError
|
|
47
|
-
kernelBetaincinv( 5, 3, '5', 0.2 ); // $ExpectError
|
|
48
|
-
kernelBetaincinv( 8, 3, [], 0.2 ); // $ExpectError
|
|
49
|
-
kernelBetaincinv( 9, 3, {}, 0.2 ); // $ExpectError
|
|
50
|
-
kernelBetaincinv( 8, 3, ( x: number ): number => x, 0.2 ); // $ExpectError
|
|
51
|
-
|
|
52
|
-
kernelBetaincinv( 9, 3, 0.8, true ); // $ExpectError
|
|
53
|
-
kernelBetaincinv( 9, 3, 0.8, false ); // $ExpectError
|
|
54
|
-
kernelBetaincinv( 5, 3, 0.8, '5' ); // $ExpectError
|
|
55
|
-
kernelBetaincinv( 8, 3, 0.8, [] ); // $ExpectError
|
|
56
|
-
kernelBetaincinv( 9, 3, 0.8, {} ); // $ExpectError
|
|
57
|
-
kernelBetaincinv( 8, 3, 0.8, ( x: number ): number => x ); // $ExpectError
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// The function does not compile if provided an insufficient number of arguments...
|
|
61
|
-
{
|
|
62
|
-
kernelBetaincinv(); // $ExpectError
|
|
63
|
-
kernelBetaincinv( 3 ); // $ExpectError
|
|
64
|
-
kernelBetaincinv( 2.131, 3 ); // $ExpectError
|
|
65
|
-
kernelBetaincinv( 2.131, 3, 0.3 ); // $ExpectError
|
|
66
|
-
}
|
|
File without changes
|