Skip to content

Commit 313457d

Browse files
committed
Auto-generated commit
1 parent 17836de commit 313457d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-03-07)
7+
## Unreleased (2025-03-10)
88

99
<section class="features">
1010

@@ -20,9 +20,9 @@
2020

2121
### Closed Issues
2222

23-
This release closes the following issue:
23+
A total of 2 issues were closed in this release:
2424

25-
[#3814](https://github.com/stdlib-js/stdlib/issues/3814)
25+
[#3814](https://github.com/stdlib-js/stdlib/issues/3814), [#5900](https://github.com/stdlib-js/stdlib/issues/5900)
2626

2727
</section>
2828

@@ -34,6 +34,7 @@ This release closes the following issue:
3434

3535
<details>
3636

37+
- [`2ce745b`](https://github.com/stdlib-js/stdlib/commit/2ce745bfa32318ef066ee82bd886d14f7432605f) - **chore:** address commit comments [(#5927)](https://github.com/stdlib-js/stdlib/pull/5927) _(by AmanBhadkariya, Philipp Burckhardt)_
3738
- [`be656a1`](https://github.com/stdlib-js/stdlib/commit/be656a143216896aa6b1ce0df89646e6a3565ec9) - **feat:** add C implementation for `stats/base/dists/triangular/logcdf` [(#4326)](https://github.com/stdlib-js/stdlib/pull/4326) _(by Prashant Kumar Yadav, Philipp Burckhardt, stdlib-bot)_
3839
- [`c7bfa92`](https://github.com/stdlib-js/stdlib/commit/c7bfa923af0c5346766c90300e0d0a3c2188d438) - **docs:** fix missing ending `section` in various READMEs [(#5292)](https://github.com/stdlib-js/stdlib/pull/5292) _(by Saurabh Singh)_
3940

@@ -47,8 +48,9 @@ This release closes the following issue:
4748

4849
### Contributors
4950

50-
A total of 3 people contributed to this release. Thank you to the following contributors:
51+
A total of 4 people contributed to this release. Thank you to the following contributors:
5152

53+
- AmanBhadkariya
5254
- Philipp Burckhardt
5355
- Prashant Kumar Yadav
5456
- Saurabh Singh

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ y = mylogcdf( 8.0 );
154154

155155
## Notes
156156

157-
- In virtually all cases, using the `logcdf` or `logcdf` functions is preferable to manually computing the logarithm of the `pdf` or `cdf`, respectively, since the latter is prone to overflow and underflow.
157+
- In virtually all cases, using the `logpdf` or `logcdf` functions is preferable to manually computing the logarithm of the `pdf` or `cdf`, respectively, since the latter is prone to overflow and underflow.
158158

159159
</section>
160160

@@ -219,7 +219,7 @@ for ( i = 0; i < 25; i++ ) {
219219

220220
#### stdlib_base_dists_geometric_logcdf( x, a, b, c )
221221

222-
Evaluates the natural logarithm of the [cumulative distribution function][cdf] (CDF) for a [triangular][triangular-distribution] distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode).
222+
Evaluates the natural logarithm of the [cumulative distribution function][cdf] (CDF) for a [triangular][triangular-distribution] distribution with parameters `a` (lower limit), `b` (upper limit), and `c` (mode).
223223

224224
```c
225225
double y = stdlib_base_dists_geometric_logcdf( 0.5, -1.0, 1.0, 0.0 );
@@ -260,7 +260,6 @@ double stdlib_base_dists_geometric_logcdf( const double x, const double a, const
260260
#include "stdlib/constants/float64/eps.h"
261261
#include <stdlib.h>
262262
#include <stdio.h>
263-
#include <math.h>
264263
265264
static double random_uniform( const double min, const double max ) {
266265
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );

examples/c/example.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "stdlib/constants/float64/eps.h"
2121
#include <stdlib.h>
2222
#include <stdio.h>
23-
#include <math.h>
2423

2524
static double random_uniform( const double min, const double max ) {
2625
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );

lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var addon = require( './../src/addon.node' );
2626
// MAIN //
2727

2828
/**
29-
* Evaluates the natural logarithm of the cumulative distribution function (CDF) for a triangular distribution with lower limit `a` and upper limit `b` and mode `c` at a value `x`.
29+
* Evaluates the natural logarithm of the cumulative distribution function (CDF) for a triangular distribution with lower limit `a`, upper limit `b`, and mode `c` at a value `x`.
3030
*
3131
* @private
3232
* @param {number} x - input value

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ double stdlib_base_dists_triangular_logcdf( const double x, const double a, cons
5252
if ( x <= c ) {
5353
return ( 2.0 * stdlib_base_ln( x - a ) - stdlib_base_ln( ( b - a ) * ( c - a ) ) );
5454
}
55-
if( x < b ){
55+
if ( x < b ) {
5656
return stdlib_base_ln( 1.0 - ( stdlib_base_pow( b - x, 2.0 ) / ( ( b - a ) * ( b - c ) ) ) );
5757
}
5858
return 0.0;

0 commit comments

Comments
 (0)