Glossary
==(===): takes two arguments and determines whether they are identical
var arg1 = "x"
var arg2 = "z"
arg1 == arg2
_.includes(): takes two arguments and determines whether the first contains the second
var arg1 = "my name is Greg"
var arg2 = "Greg"
_.includes(arg1,arg2)
categorical: takes either a single options argument with values specified forps(i.e., a list of probabilities) andvs(i.e., a list of variables), or two lists (the first a list of probabilities, the second a list of variables); returns a sample from a categorical distribution. Note:categoricalwill renormalize a list of numbers into a list of probabilities
categorical({ps:[1,2,3],vs:["a","b","c"]})
//categorical([1,2,3],["a","b","c"])
mapmap2uniformDrawprint,displaycondition,factor,observeMath.logbinomMath.minMath.exp_.isNaN_.rangebinomialmarginalizeJSON.stringifyMath.roundmarginalizeviz.marginals.concatuniformobject["string"]andobject.stringsyntaxx ? y : zsyntax
Table of Contents