Skip to content

Commit cfbf12f

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 30f71b2 commit cfbf12f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/README.md

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

162162
#### stdlib_base_dists_bernoulli_pmf( x, p )
163163

164-
Returns a function for evaluating the [probability mass function][pmf] (PMF) of a [Bernoulli][bernoulli-distribution] distribution with success probability `0 <= p <= 1`.
164+
Evaluates the [probability mass function][pmf] (PMF) of a [Bernoulli][bernoulli-distribution] distribution with success probability `0 <= p <= 1`.
165165

166166
```c
167167
double y = stdlib_base_dists_bernoulli_pmf( 1.0, 0.3 );

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bench( pkg, function benchmark( b ) {
4242
x = new Float64Array( len );
4343
p = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
x[ i ] = discreteUniform( 0.0, 3.0 );
45+
x[ i ] = discreteUniform( 0, 3 );
4646
p[ i ] = uniform( 0.0, 1.0 );
4747
}
4848

@@ -75,7 +75,7 @@ bench( pkg+':factory', function benchmark( b ) {
7575
len = 100;
7676
x = new Float64Array( len );
7777
for ( i = 0; i < len; i++ ) {
78-
x[ i ] = discreteUniform( 0.0, 3.0 );
78+
x[ i ] = discreteUniform( 0, 3 );
7979
}
8080

8181
b.tic();

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
x = new Float64Array( len );
5252
p = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
x[ i ] = discreteUniform( 0.0, 3.0 );
54+
x[ i ] = discreteUniform( 0, 3 );
5555
p[ i ] = uniform( 0.0, 1.0 );
5656
}
5757

0 commit comments

Comments
 (0)