#NEWLINE# def __init__( self , cfdist , probdist_factory , * factory_args , **factory_kw_args ) : #NEWLINE# #INDENT# "\n        Construct a new conditional probability distribution, based on\n        the given conditional frequency distribution and ``ProbDist``\n        factory.\n\n        :type cfdist: ConditionalFreqDist\n        :param cfdist: The ``ConditionalFreqDist`` specifying the\n            frequency distribution for each condition.\n        :type probdist_factory: class or function\n        :param probdist_factory: The function or class that maps\n            a condition's frequency distribution to its probability\n            distribution.  The function is called with the frequency\n            distribution as its first argument,\n            ``factory_args`` as its remaining arguments, and\n            ``factory_kw_args`` as keyword arguments.\n        :type factory_args: (any)\n        :param factory_args: Extra arguments for ``probdist_factory``.\n            These arguments are usually used to specify extra\n            properties for the probability distributions of individual\n            conditions, such as the number of bins they contain.\n        :type factory_kw_args: (any)\n        :param factory_kw_args: Extra keyword arguments for ``probdist_factory``.\n        " #NEWLINE# self . _probdist_factory = probdist_factory #NEWLINE# self . _factory_args = factory_args #NEWLINE# self . _factory_kw_args = factory_kw_args #NEWLINE# for condition in cfdist : #NEWLINE# #INDENT# self [ condition ] = probdist_factory ( cfdist [ condition ] , * factory_args , ** factory_kw_args )