mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-24 19:34:38 +00:00
refactor: add missing jsdoc inside calculateRank.js (#3155)
This commit is contained in:
committed by
GitHub
parent
5574fd264e
commit
ecf1db6dce
@@ -1,7 +1,19 @@
|
||||
/**
|
||||
* Calculates the exponential cdf.
|
||||
*
|
||||
* @param {number} x The value.
|
||||
* @returns {number} The exponential cdf.
|
||||
*/
|
||||
function exponential_cdf(x) {
|
||||
return 1 - 2 ** -x;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the log normal cdf.
|
||||
*
|
||||
* @param {number} x The value.
|
||||
* @returns {number} The log normal cdf.
|
||||
*/
|
||||
function log_normal_cdf(x) {
|
||||
// approximation
|
||||
return x / (1 + x);
|
||||
|
||||
Reference in New Issue
Block a user