A probability distribution that assigns equal probability to each
sample in a given set; and a zero probability to all other samples.
|
|
__init__(self,
samples)
Construct a new uniform probability distribution, that assigns equal
probability to each sample in samples. |
source code
|
|
|
float
|
prob(self,
sample)
Returns:
the probability for a given sample. |
source code
|
|
|
any
|
max(self)
Returns:
the sample with the greatest probability. |
source code
|
|
list
|
|
|
|
|
|
Inherited from ProbDistI:
logprob
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|