Skip to content

Commit fd740b1

Browse files
chore: changes from code review
1 parent 63bd5d3 commit fd740b1

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpdf/README.md

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

156156
#### stdlib_base_dists_degenerate_logpdf( x, mu )
157157

158-
Evaluates the natural logarithm of the probability density function (logPDF) for a degenerate distribution.
158+
Evaluates the natural logarithm of the (PDF) of a degenerate distribution centered at `mu`.
159159

160160
```c
161161
double out = stdlib_base_dists_degenerate_logpdf( 2.0, 3.0 );

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpdf/benchmark/benchmark.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ bench( pkg+':factory', function benchmark( b ) {
7070

7171
mu = 40.0;
7272
mylogpdf = logpdf.factory( mu );
73+
7374
len = 100;
7475
x = new Float64Array( len );
7576
for ( i = 0; i < len; i++ ) {

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpdf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static double benchmark( void ) {
106106

107107
t = tic();
108108
for ( i = 0; i < ITERATIONS; i++ ) {
109-
y = stdlib_base_dists_degenerate_logpdf( x[ i%100 ], mu[ i%100 ] );
109+
y = stdlib_base_dists_degenerate_logpdf( x[ i % 100 ], mu[ i % 100 ] );
110110
if ( y != y ) {
111111
printf( "should not return NaN\n" );
112112
break;

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpdf/include/stdlib/stats/base/dists/degenerate/logpdf.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-
* Evaluates the natural logarithm of the probability density function (logPDF) for a degenerate distribution centered at `mu`.
30+
* Evaluates the natural logarithm of the (PDF) of a degenerate distribution centered at `mu`.
3131
*/
3232
double stdlib_base_dists_degenerate_logpdf( const double x, const double mu );
3333

lib/node_modules/@stdlib/stats/base/dists/degenerate/logpdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "stdlib/constants/float64/pinf.h"
2323

2424
/**
25-
* Evaluates the natural logarithm of the probability density function (logPDF) for a degenerate distribution centered at `mu`.
25+
* Evaluates the natural logarithm of the (PDF) of a degenerate distribution centered at `mu`.
2626
*
2727
* @param x input value
2828
* @param mu constant value of the distribution

0 commit comments

Comments
 (0)