Package teamwork :: Package math :: Module probability
[hide private]
[frames] | no frames]

Module probability

source code

Classes [hide private]
  Distribution
A probability distribution
Functions [hide private]
 
setitemAndReturn(table, key, value)
Helper method used by Distribution.join method
source code
Variables [hide private]
  EMPTY_NAMESPACE = None
  EMPTY_PREFIX = None
  StringTypes = (<type 'str'>, <type 'unicode'>)
  XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
Function Details [hide private]

setitemAndReturn(table, key, value)

source code 

Helper method used by Distribution.join method

Parameters:
  • table (dictionary) - the dictionary to modify
  • key (hashable instance) - the entry to set in that dictionary
  • value - the value to stick into the dictionary
Returns:
a copy of the original dictionary with the specified key-value association inserted