UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

10 lines (9 loc) 300 B
"use strict"; module.exports = { 'name': 'kldivergence', 'category': 'Probability', 'syntax': ['kldivergence(x, y)'], 'description': 'Calculate the Kullback-Leibler (KL) divergence between two distributions.', 'examples': ['kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])'], 'seealso': [] };