How to use the jstat.gammaln function in jstat

To help you get started, we’ve selected a few jstat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zhilu-nanjing / financial-cell / src / calc / expression_fn / lib / statistical.js View on Github external
exports.GAMMALN.PRECISE = function(x) {
  if (arguments.length !== 1) {
    return Error(ERROR_NA);
  }
  if (x <= 0) {
    return Error(ERROR_NUM);
  }

  if (typeof x !== 'number') {
    return Error(ERROR_VALUE);
  }

  return jStat.gammaln(x);
};
github zhilu-nanjing / financial-cell / src / calc / expression_fn / lib / statistical.js View on Github external
export function GAMMALN(number) {
  number = parseNumber(number);
  if (number instanceof Error) {
    return number;
  }
  if (number <= 0) {
    return Error(ERROR_NUM)
  }
  return jStat.gammaln(number);
};