Class ConditionalProbDistI
source code
object --+
|
ConditionalProbDistI
- Known Subclasses:
-
ConditionalProbDist,
DictionaryConditionalProbDist
A collection of probability distributions for a single experiment run
under different conditions. Conditional probability distributions are
used to estimate the likelihood of each sample, given the condition under
which the experiment was run. For example, a conditional probability
distribution could be used to estimate the probability of each word type
in a document, given the length of the word type. Formally, a
conditional probability distribution can be defined as a function that
maps from each condition to the ProbDist
for the experiment
under that condition.
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Overrides:
object.__init__
- (inherited documentation)
|
__getitem__(self,
condition)
(Indexing operator)
| source code
|
- Parameters:
condition (any) - The condition whose probability distribution should be returned.
- Returns:
ProbDistI
- The probability distribution for the experiment run under the
given condition.
|
- Returns:
list
- A list of the conditions that are represented by this
ConditionalProbDist . Use the indexing operator to
access the probability distribution for a given condition.
|