|
JDist(PA,
PBgA)
Create a joint distribution on P(A, B) (in that order), represented
as a DDist
|
|
|
|
|
|
|
|
DeltaDist(v)
Distribution with all of its probability mass on value v
|
|
|
|
UniformDist(elts)
Uniform distribution over a given finite set of elts
|
|
|
|
triangleDist(peak,
halfWidth,
lo=None,
hi=None)
Construct and return a DDist over integers. |
|
|
|
squareDist(lo,
hi,
loLimit=None,
hiLimit=None)
Construct and return a DDist over integers. |
|
|
|
removeElt(items,
i)
non-destructively remove the element at index i from a list; returns
a copy; if the result is a list of length 1, just return the element |
|
|
|
incrDictEntry(d,
k,
v)
If dictionary d has key k , then increment
d[k] by v . |
|
|