Skip to content

Commit 90d94d3

Browse files
committed
Auto-generated commit
1 parent e4f5f61 commit 90d94d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+10
-4003
lines changed

CHANGELOG.md

Lines changed: 2 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -282,40 +282,6 @@ This release closes the following issue:
282282

283283
<!-- /.package -->
284284

285-
<section class="package" id="stats-base-dists-beta-mode-unreleased">
286-
287-
#### [@stdlib/stats/base/dists/beta/mode](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/beta/mode)
288-
289-
<details>
290-
291-
<section class="features">
292-
293-
##### Features
294-
295-
- [`b018e09`](https://github.com/stdlib-js/stdlib/commit/b018e09b9cdaf0d9cfb06a815b3c3ea0ee2c0067) - add C implementation for `stats/base/dists/beta/mode` [(#3908)](https://github.com/stdlib-js/stdlib/pull/3908)
296-
297-
</section>
298-
299-
<!-- /.features -->
300-
301-
<section class="issues">
302-
303-
##### Closed Issues
304-
305-
This release closes the following issue:
306-
307-
[#3431](https://github.com/stdlib-js/stdlib/issues/3431)
308-
309-
</section>
310-
311-
<!-- /.issues -->
312-
313-
</details>
314-
315-
</section>
316-
317-
<!-- /.package -->
318-
319285
<section class="package" id="stats-base-dists-beta-skewness-unreleased">
320286

321287
#### [@stdlib/stats/base/dists/beta/skewness](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/beta/skewness)
@@ -384,40 +350,6 @@ This release closes the following issue:
384350

385351
<!-- /.package -->
386352

387-
<section class="package" id="stats-base-dists-beta-variance-unreleased">
388-
389-
#### [@stdlib/stats/base/dists/beta/variance](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/beta/variance)
390-
391-
<details>
392-
393-
<section class="features">
394-
395-
##### Features
396-
397-
- [`bb09b18`](https://github.com/stdlib-js/stdlib/commit/bb09b185f74d2fc05254a2f164119ca05054887f) - add C implementation for `stats/base/dists/beta/variance` [(#3919)](https://github.com/stdlib-js/stdlib/pull/3919)
398-
399-
</section>
400-
401-
<!-- /.features -->
402-
403-
<section class="issues">
404-
405-
##### Closed Issues
406-
407-
This release closes the following issue:
408-
409-
[#3436](https://github.com/stdlib-js/stdlib/issues/3436)
410-
411-
</section>
412-
413-
<!-- /.issues -->
414-
415-
</details>
416-
417-
</section>
418-
419-
<!-- /.package -->
420-
421353
<section class="package" id="stats-base-dists-betaprime-kurtosis-unreleased">
422354

423355
#### [@stdlib/stats/base/dists/betaprime/kurtosis](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/betaprime/kurtosis)
@@ -694,40 +626,6 @@ This release closes the following issue:
694626

695627
<!-- /.package -->
696628

697-
<section class="package" id="stats-base-dists-poisson-variance-unreleased">
698-
699-
#### [@stdlib/stats/base/dists/poisson/variance](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/poisson/variance)
700-
701-
<details>
702-
703-
<section class="features">
704-
705-
##### Features
706-
707-
- [`0e2d82a`](https://github.com/stdlib-js/stdlib/commit/0e2d82a0e55b279370365e56b765922321a69e05) - add C implementation for `stats/base/dists/poisson/variance` [(#3933)](https://github.com/stdlib-js/stdlib/pull/3933)
708-
709-
</section>
710-
711-
<!-- /.features -->
712-
713-
<section class="issues">
714-
715-
##### Closed Issues
716-
717-
This release closes the following issue:
718-
719-
[#3797](https://github.com/stdlib-js/stdlib/issues/3797)
720-
721-
</section>
722-
723-
<!-- /.issues -->
724-
725-
</details>
726-
727-
</section>
728-
729-
<!-- /.package -->
730-
731629
<section class="package" id="stats-base-dists-t-mean-unreleased">
732630

733631
#### [@stdlib/stats/base/dists/t/mean](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/t/mean)
@@ -910,9 +808,9 @@ A total of 3 issues were closed in this release:
910808

911809
### Closed Issues
912810

913-
A total of 28 issues were closed in this release:
811+
A total of 25 issues were closed in this release:
914812

915-
[#1619](https://github.com/stdlib-js/stdlib/issues/1619), [#1632](https://github.com/stdlib-js/stdlib/issues/1632), [#1633](https://github.com/stdlib-js/stdlib/issues/1633), [#3236](https://github.com/stdlib-js/stdlib/issues/3236), [#3237](https://github.com/stdlib-js/stdlib/issues/3237), [#3238](https://github.com/stdlib-js/stdlib/issues/3238), [#3378](https://github.com/stdlib-js/stdlib/issues/3378), [#3384](https://github.com/stdlib-js/stdlib/issues/3384), [#3385](https://github.com/stdlib-js/stdlib/issues/3385), [#3401](https://github.com/stdlib-js/stdlib/issues/3401), [#3402](https://github.com/stdlib-js/stdlib/issues/3402), [#3414](https://github.com/stdlib-js/stdlib/issues/3414), [#3417](https://github.com/stdlib-js/stdlib/issues/3417), [#3421](https://github.com/stdlib-js/stdlib/issues/3421), [#3431](https://github.com/stdlib-js/stdlib/issues/3431), [#3434](https://github.com/stdlib-js/stdlib/issues/3434), [#3435](https://github.com/stdlib-js/stdlib/issues/3435), [#3436](https://github.com/stdlib-js/stdlib/issues/3436), [#3438](https://github.com/stdlib-js/stdlib/issues/3438), [#3445](https://github.com/stdlib-js/stdlib/issues/3445), [#3446](https://github.com/stdlib-js/stdlib/issues/3446), [#3447](https://github.com/stdlib-js/stdlib/issues/3447), [#3671](https://github.com/stdlib-js/stdlib/issues/3671), [#3797](https://github.com/stdlib-js/stdlib/issues/3797), [#3865](https://github.com/stdlib-js/stdlib/issues/3865), [#3874](https://github.com/stdlib-js/stdlib/issues/3874), [#3879](https://github.com/stdlib-js/stdlib/issues/3879), [#3880](https://github.com/stdlib-js/stdlib/issues/3880)
813+
[#1619](https://github.com/stdlib-js/stdlib/issues/1619), [#1632](https://github.com/stdlib-js/stdlib/issues/1632), [#1633](https://github.com/stdlib-js/stdlib/issues/1633), [#3236](https://github.com/stdlib-js/stdlib/issues/3236), [#3237](https://github.com/stdlib-js/stdlib/issues/3237), [#3238](https://github.com/stdlib-js/stdlib/issues/3238), [#3378](https://github.com/stdlib-js/stdlib/issues/3378), [#3384](https://github.com/stdlib-js/stdlib/issues/3384), [#3385](https://github.com/stdlib-js/stdlib/issues/3385), [#3401](https://github.com/stdlib-js/stdlib/issues/3401), [#3402](https://github.com/stdlib-js/stdlib/issues/3402), [#3414](https://github.com/stdlib-js/stdlib/issues/3414), [#3417](https://github.com/stdlib-js/stdlib/issues/3417), [#3421](https://github.com/stdlib-js/stdlib/issues/3421), [#3434](https://github.com/stdlib-js/stdlib/issues/3434), [#3435](https://github.com/stdlib-js/stdlib/issues/3435), [#3438](https://github.com/stdlib-js/stdlib/issues/3438), [#3445](https://github.com/stdlib-js/stdlib/issues/3445), [#3446](https://github.com/stdlib-js/stdlib/issues/3446), [#3447](https://github.com/stdlib-js/stdlib/issues/3447), [#3671](https://github.com/stdlib-js/stdlib/issues/3671), [#3865](https://github.com/stdlib-js/stdlib/issues/3865), [#3874](https://github.com/stdlib-js/stdlib/issues/3874), [#3879](https://github.com/stdlib-js/stdlib/issues/3879), [#3880](https://github.com/stdlib-js/stdlib/issues/3880)
916814

917815
</section>
918816

@@ -947,9 +845,6 @@ A total of 12 people contributed to this release. Thank you to the following con
947845

948846
<details>
949847

950-
- [`bb09b18`](https://github.com/stdlib-js/stdlib/commit/bb09b185f74d2fc05254a2f164119ca05054887f) - **feat:** add C implementation for `stats/base/dists/beta/variance` [(#3919)](https://github.com/stdlib-js/stdlib/pull/3919) _(by Vivek maurya, Philipp Burckhardt)_
951-
- [`0e2d82a`](https://github.com/stdlib-js/stdlib/commit/0e2d82a0e55b279370365e56b765922321a69e05) - **feat:** add C implementation for `stats/base/dists/poisson/variance` [(#3933)](https://github.com/stdlib-js/stdlib/pull/3933) _(by Aayush Khanna, Philipp Burckhardt, stdlib-bot)_
952-
- [`b018e09`](https://github.com/stdlib-js/stdlib/commit/b018e09b9cdaf0d9cfb06a815b3c3ea0ee2c0067) - **feat:** add C implementation for `stats/base/dists/beta/mode` [(#3908)](https://github.com/stdlib-js/stdlib/pull/3908) _(by Vivek maurya, Philipp Burckhardt)_
953848
- [`ed99b85`](https://github.com/stdlib-js/stdlib/commit/ed99b8564b5ea451e094ea331eab9df470df96eb) - **chore:** minor clean-up _(by Philipp Burckhardt)_
954849
- [`0e887d5`](https://github.com/stdlib-js/stdlib/commit/0e887d567344c8a31a382266389022ec26f2bcca) - **style:** add missing spaces _(by Philipp Burckhardt)_
955850
- [`ff25e13`](https://github.com/stdlib-js/stdlib/commit/ff25e1324e1507cc076078e82badce7fdf7915f6) - **docs:** remove excess whitespace _(by Philipp Burckhardt)_

base/dists/beta/mode/README.md

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -144,101 +144,6 @@ for ( i = 0; i < 10; i++ ) {
144144

145145
<!-- /.examples -->
146146

147-
<!-- C interface documentation. -->
148-
149-
* * *
150-
151-
<section class="c">
152-
153-
## C APIs
154-
155-
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
156-
157-
<section class="intro">
158-
159-
</section>
160-
161-
<!-- /.intro -->
162-
163-
<!-- C usage documentation. -->
164-
165-
<section class="usage">
166-
167-
### Usage
168-
169-
```c
170-
#include "stdlib/stats/base/dists/beta/mode.h"
171-
```
172-
173-
#### stdlib_base_dists_beta_mode( alpha, beta )
174-
175-
Returns the [mode][mode] of a [beta][beta-distribution] distribution with parameters `alpha` (first shape parameter) and `beta` (second shape parameter).
176-
177-
```c
178-
double out = stdlib_base_dists_beta_mode( 4.0, 12.0 );
179-
// returns ~0.214
180-
```
181-
182-
The function accepts the following arguments:
183-
184-
- **alpha**: `[in] double` first shape parameter.
185-
- **beta**: `[in] double` second shape parameter.
186-
187-
```c
188-
double stdlib_base_dists_beta_mode( const double alpha, const double beta );
189-
```
190-
191-
</section>
192-
193-
<!-- /.usage -->
194-
195-
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
196-
197-
<section class="notes">
198-
199-
</section>
200-
201-
<!-- /.notes -->
202-
203-
<!-- C API usage examples. -->
204-
205-
<section class="examples">
206-
207-
### Examples
208-
209-
```c
210-
#include "stdlib/stats/base/dists/beta/mode.h"
211-
#include "stdlib/constants/float64/eps.h"
212-
#include <stdlib.h>
213-
#include <stdio.h>
214-
215-
static double random_uniform( const double min, const double max ) {
216-
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
217-
return min + ( v*(max-min) );
218-
}
219-
220-
int main( void ) {
221-
double alpha;
222-
double beta;
223-
double y;
224-
int i;
225-
for ( i = 0; i < 25; i++ ) {
226-
alpha = random_uniform( 0.0, 10.0 ) + 1.0 + STDLIB_CONSTANT_FLOAT64_EPS;
227-
beta = random_uniform( 0.0, 10.0 ) + 1.0 + STDLIB_CONSTANT_FLOAT64_EPS;
228-
y = stdlib_base_dists_beta_mode( alpha, beta );
229-
printf( "alpha: %lf, beta: %lf, mode(X;alpha,beta): %lf\n", alpha, beta, y );
230-
}
231-
}
232-
```
233-
234-
</section>
235-
236-
<!-- /.examples -->
237-
238-
</section>
239-
240-
<!-- /.c -->
241-
242147
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
243148

244149
<section class="references">

base/dists/beta/mode/benchmark/benchmark.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var randu = require( '@stdlib/random/base/randu' );
25-
var Float64Array = require( '@stdlib/array/float64' );
2625
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2726
var EPS = require( '@stdlib/constants/float64/eps' );
2827
var pkg = require( './../package.json' ).name;
@@ -34,21 +33,14 @@ var mode = require( './../lib' );
3433
bench( pkg, function benchmark( b ) {
3534
var alpha;
3635
var beta;
37-
var len;
3836
var y;
3937
var i;
4038

41-
len = 100;
42-
alpha = new Float64Array( len );
43-
beta = new Float64Array( len );
44-
for ( i = 0; i < len; i++ ) {
45-
alpha[ i ] = ( randu()*10.0 ) + 1.0 + EPS;
46-
beta[ i ] = ( randu()*10.0 ) + 1.0 + EPS;
47-
}
48-
4939
b.tic();
5040
for ( i = 0; i < b.iterations; i++ ) {
51-
y = mode( alpha[ i%len ], beta[ i%len ] );
41+
alpha = ( randu()*10.0 ) + 1.0 + EPS;
42+
beta = ( randu()*10.0 ) + 1.0 + EPS;
43+
y = mode( alpha, beta );
5244
if ( isnan( y ) ) {
5345
b.fail( 'should not return NaN' );
5446
}

base/dists/beta/mode/benchmark/benchmark.native.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)