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

13 lines (12 loc) 304 B
export const kldivergenceDocs = { 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: [] }