@stdlib/math-base-special-kernel-betaincinv 0.0.5 → 0.0.6
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/NOTICE +1 -1
- package/README.md +35 -2
- package/lib/inverse_students_t.js +1 -1
- package/lib/kernel_betaincinv.js +1 -1
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# Kernel Betaincinv
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> Inverse of the lower [incomplete beta function][incomplete-beta-function].
|
|
26
26
|
|
|
@@ -97,6 +97,22 @@ for ( i = 0; i < 100; i++ ) {
|
|
|
97
97
|
|
|
98
98
|
<!-- /.examples -->
|
|
99
99
|
|
|
100
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
101
|
+
|
|
102
|
+
<section class="related">
|
|
103
|
+
|
|
104
|
+
* * *
|
|
105
|
+
|
|
106
|
+
## See Also
|
|
107
|
+
|
|
108
|
+
- <span class="package-name">[`@stdlib/math/base/special/betaincinv`][@stdlib/math/base/special/betaincinv]</span><span class="delimiter">: </span><span class="description">inverse incomplete beta function.</span>
|
|
109
|
+
|
|
110
|
+
</section>
|
|
111
|
+
|
|
112
|
+
<!-- /.related -->
|
|
113
|
+
|
|
114
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
115
|
+
|
|
100
116
|
|
|
101
117
|
<section class="main-repo" >
|
|
102
118
|
|
|
@@ -121,7 +137,7 @@ See [LICENSE][stdlib-license].
|
|
|
121
137
|
|
|
122
138
|
## Copyright
|
|
123
139
|
|
|
124
|
-
Copyright © 2016-
|
|
140
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
125
141
|
|
|
126
142
|
</section>
|
|
127
143
|
|
|
@@ -140,9 +156,20 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
140
156
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-kernel-betaincinv/main.svg
|
|
141
157
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-kernel-betaincinv?branch=main
|
|
142
158
|
|
|
159
|
+
<!--
|
|
160
|
+
|
|
143
161
|
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-base-special-kernel-betaincinv.svg
|
|
144
162
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-base-special-kernel-betaincinv/main
|
|
145
163
|
|
|
164
|
+
-->
|
|
165
|
+
|
|
166
|
+
[umd]: https://github.com/umdjs/umd
|
|
167
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
168
|
+
|
|
169
|
+
[deno-url]: https://github.com/stdlib-js/math-base-special-kernel-betaincinv/tree/deno
|
|
170
|
+
[umd-url]: https://github.com/stdlib-js/math-base-special-kernel-betaincinv/tree/umd
|
|
171
|
+
[esm-url]: https://github.com/stdlib-js/math-base-special-kernel-betaincinv/tree/esm
|
|
172
|
+
|
|
146
173
|
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
147
174
|
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
148
175
|
|
|
@@ -154,6 +181,12 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
154
181
|
|
|
155
182
|
[incomplete-beta-function]: https://en.wikipedia.org/wiki/Incomplete_beta_function
|
|
156
183
|
|
|
184
|
+
<!-- <related-links> -->
|
|
185
|
+
|
|
186
|
+
[@stdlib/math/base/special/betaincinv]: https://www.npmjs.com/package/@stdlib/math-base-special-betaincinv
|
|
187
|
+
|
|
188
|
+
<!-- </related-links> -->
|
|
189
|
+
|
|
157
190
|
</section>
|
|
158
191
|
|
|
159
192
|
<!-- /.links -->
|
|
@@ -129,7 +129,7 @@ function inverseStudentsT( df, u, v ) {
|
|
|
129
129
|
return ( ( invert ) ? -1 : 1 ) * inverseStudentsTHill( df, u );
|
|
130
130
|
}
|
|
131
131
|
// Newton-Raphson iteration of a polynomial case, choice of seed value is taken from Shaw's online supplement:
|
|
132
|
-
a = 4.0 * ( u - (u*u) )
|
|
132
|
+
a = 4.0 * ( u - (u*u) ); // 1 - 4 * (u - 0.5f) * (u - 0.5f);
|
|
133
133
|
b = pow( a, ONE_THIRD );
|
|
134
134
|
p = 6.0 * ( 1.0 + ( C * ( (1.0/b) - 1.0 ) ) );
|
|
135
135
|
do {
|
package/lib/kernel_betaincinv.js
CHANGED