Skip to content

Commit 43a3f89

Browse files
chore: minor updates
1 parent a00e9eb commit 43a3f89

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ for ( i = 0; i < 10; i++ ) {
172172

173173
#### stdlib_base_dists_betaprime_mean( alpha, beta )
174174

175-
Returns the mean for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
175+
Returns the expected value for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
176176

177177
```c
178178
double y = stdlib_base_dists_betaprime_mean( 1.0, 2.0 );

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bench( pkg, function benchmark( b ) {
5050

5151
b.tic();
5252
for ( i = 0; i < b.iterations; i++ ) {
53-
y = mean( alpha[ i%100 ], beta[ i%100 ] );
53+
y = mean( alpha[ i % len ], beta[ i % len ] );
5454
if ( isnan( y ) ) {
5555
b.fail( 'should not return NaN' );
5656
}

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5959

6060
b.tic();
6161
for ( i = 0; i < b.iterations; i++ ) {
62-
y = mean( alpha[ i%100 ], beta[ i%100 ] );
62+
y = mean( alpha[ i % len ], beta[ i % len ] );
6363
if ( isnan( y ) ) {
6464
b.fail( 'should not return NaN' );
6565
}

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static double benchmark( void ) {
104104
alpha[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
105105
}
106106
for ( i = 0; i < 100; i++ ) {
107-
beta[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
107+
beta[ i ] = random_uniform( 1.0 + STDLIB_CONSTANT_FLOAT64_EPS, 11.0 );
108108
}
109109

110110
t = tic();

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "stdlib/constants/float64/eps.h"
2019
#include "stdlib/stats/base/dists/betaprime/mean.h"
20+
#include "stdlib/constants/float64/eps.h"
2121
#include <stdio.h>
2222
#include <stdlib.h>
2323

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/include/stdlib/stats/base/dists/betaprime/mean.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Returns the mean for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
30+
* Returns the expected value for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
3131
*/
3232
double stdlib_base_dists_betaprime_mean( const double alpha, const double beta );
3333

lib/node_modules/@stdlib/stats/base/dists/betaprime/mean/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
#include "stdlib/stats/base/dists/betaprime/mean.h"
2020

2121
/**
22-
* Returns the mean for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
22+
* Returns the expected value for a beta prime distribution with first shape parameter `alpha` and second shape parameter `beta`.
2323
*
24-
* @private
2524
* @param x input value
2625
* @param alpha first shape parameter
2726
* @param beta second shape parameter

0 commit comments

Comments
 (0)