Skip to content

Commit 3c1789f

Browse files
committed
docs: add missing private annotations and decimals
1 parent 03494c2 commit 3c1789f

File tree

2 files changed

+10
-3
lines changed
  • lib/node_modules/@stdlib

2 files changed

+10
-3
lines changed

lib/node_modules/@stdlib/array/fixed-endian-factory/lib/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
554554
/**
555555
* Tests whether all elements in an array pass a test implemented by a predicate function.
556556
*
557+
* @private
557558
* @name every
558559
* @memberof TypedArray.prototype
559560
* @type {Function}
@@ -585,6 +586,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
585586
/**
586587
* Returns a new array containing the elements of an array which pass a test implemented by a predicate function.
587588
*
589+
* @private
588590
* @name filter
589591
* @memberof TypedArray.prototype
590592
* @type {Function}
@@ -620,6 +622,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
620622
/**
621623
* Invokes a function once for each array element.
622624
*
625+
* @private
623626
* @name forEach
624627
* @memberof TypedArray.prototype
625628
* @type {Function}
@@ -798,7 +801,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
798801
* @memberof TypedArray.prototype
799802
* @type {Function}
800803
* @param {*} searchElement - element to search for
801-
* @param {integer} fromIndex - starting index (inclusive)
804+
* @param {integer} [fromIndex] - starting index (inclusive)
802805
* @throws {TypeError} `this` must be a typed array instance
803806
* @throws {TypeError} second argument must be an integer
804807
* @returns {integer} index or -1
@@ -882,6 +885,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
882885
/**
883886
* Applies a provided callback function to each element of the array, in order, passing in the return value from the calculation on the preceding element and returning the accumulated result upon completion.
884887
*
888+
* @private
885889
* @name reduce
886890
* @memberof TypedArray.prototype
887891
* @type {Function}
@@ -924,6 +928,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
924928
/**
925929
* Applies a provided callback function to each element of the array, in reverse order, passing in the return value from the calculation on the following element and returning the accumulated result upon completion.
926930
*
931+
* @private
927932
* @name reduceRight
928933
* @memberof TypedArray.prototype
929934
* @type {Function}
@@ -1061,6 +1066,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
10611066
/**
10621067
* Tests whether at least one element in the typed array passes a test implemented by a predicate function.
10631068
*
1069+
* @private
10641070
* @name some
10651071
* @memberof TypedArray.prototype
10661072
* @type {Function}
@@ -1117,6 +1123,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
11171123
/**
11181124
* Returns a new typed array with the element at a provided index replaced with a provided value.
11191125
*
1126+
* @private
11201127
* @name with
11211128
* @memberof TypedArray.prototype
11221129
* @type {Function}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ int main( void ) {
226226
int i;
227227
228228
for ( i = 0; i < 25; i++ ) {
229-
alpha = random_uniform( 0, 20 );
230-
beta = random_uniform( 0, 20 ) + 2.0;
229+
alpha = random_uniform( 0.0, 20.0 );
230+
beta = random_uniform( 0.0, 20.0 ) + 2.0;
231231
y = stdlib_base_dists_betaprime_stdev( alpha, beta );
232232
printf( "α: %lf, β: %lf, SD(X;α,β): %lf\n", alpha, beta, y );
233233
}

0 commit comments

Comments
 (0)