simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

distribution.js (573B)


      1 export var distributionDocs = {
      2   name: 'distribution',
      3   category: 'Probability',
      4   syntax: ['distribution(name)', 'distribution(name, arg1, arg2, ...)'],
      5   description: 'Create a distribution object of a specific type. ' + 'A distribution object contains functions `random([size,] [min,] [max])`, ' + '`randomInt([size,] [min,] [max])` and `pickRandom(array)`. ' + 'Available types of distributions: "uniform", "normal". ' + 'Note that the function distribution is currently not available via the expression parser.',
      6   examples: [],
      7   seealso: ['random', 'randomInt']
      8 };