Skip to content

Commit ecf1db6

Browse files
authored
refactor: add missing jsdoc inside calculateRank.js (anuraghazra#3155)
1 parent 5574fd2 commit ecf1db6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/calculateRank.js

+12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
/**
2+
* Calculates the exponential cdf.
3+
*
4+
* @param {number} x The value.
5+
* @returns {number} The exponential cdf.
6+
*/
17
function exponential_cdf(x) {
28
return 1 - 2 ** -x;
39
}
410

11+
/**
12+
* Calculates the log normal cdf.
13+
*
14+
* @param {number} x The value.
15+
* @returns {number} The log normal cdf.
16+
*/
517
function log_normal_cdf(x) {
618
// approximation
719
return x / (1 + x);

0 commit comments

Comments
 (0)