Skip to content

Commit e12e248

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/base/dists/triangular/pdf/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ for ( i = 0; i < 25; i++ ) {
178178
#include "stdlib/stats/base/dists/triangular/pdf.h"
179179
```
180180

181-
#### stdlib_base_dists_triangular_pdf( x, p )
181+
#### stdlib_base_dists_triangular_pdf( x, a, b, c )
182182

183183
Evaluates the [probability density function][pdf] (PDF) of a [triangular][triangular-distribution] distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode).
184184

@@ -190,9 +190,9 @@ double y = stdlib_base_dists_triangular_pdf( 0.5, -1.0, 1.0, 0.0 );
190190
The function accepts the following arguments:
191191

192192
- **x**: `[in] double` input value.
193-
- **a**: `[in] double` lower limit
194-
- **b**: `[in] double` upper limit
195-
- **c**: `[in] double` mode
193+
- **a**: `[in] double` lower limit.
194+
- **b**: `[in] double` upper limit.
195+
- **c**: `[in] double` mode.
196196

197197
```c
198198
double stdlib_base_dists_triangular_pdf( const double x, const double a, const double b, const double c );

lib/node_modules/@stdlib/stats/base/dists/triangular/pdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @return evaluated PDF
3131
*
3232
* @example
33-
* double y = stdlib_base_dists_geometric_pdf( 0.5, -1.0, 1.0, 0.0 );
33+
* double y = stdlib_base_dists_triangular_pdf( 0.5, -1.0, 1.0, 0.0 );
3434
* // returns 0.5
3535
*/
3636
double stdlib_base_dists_triangular_pdf( const double x, const double a, const double b, const double c ) {

0 commit comments

Comments
 (0)