Skip to content

Commit 3e9122c

Browse files
authored
docs: add Doxygen comment
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 612293d commit 3e9122c

File tree

1 file changed

+6
-0
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/logistic/logcdf/src

1 file changed

+6
-0
lines changed

lib/node_modules/@stdlib/stats/base/dists/logistic/logcdf/src/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
#include "stdlib/math/base/special/log1p.h"
2323
#include "stdlib/math/base/special/exp.h"
2424

25+
/**
26+
* Computes `log(1 + exp(x))` in a numerically stable manner.
27+
*
28+
* @param x input value
29+
* @return log(1 + exp(x))
30+
*/
2531
double log1pexp( const double x ) {
2632
if ( x <= 18.0 ) {
2733
return stdlib_base_log1p( stdlib_base_exp( x ) );

0 commit comments

Comments
 (0)