def __init__(self, values=None, name='<STR_LIT>'):
self.name = name<EOL>self.d = {}<EOL>self.log = False<EOL>if values is None:<EOL><INDENT>return<EOL><DEDENT>init_methods = [<EOL>self.InitPmf,<EOL>self.InitMapping,<EOL>self.InitSequence,<EOL>self.InitFailure,<EOL>]<EOL>for method in init_methods:<EOL><INDENT>try:<EOL><INDENT>method(values)<EOL>break<EOL><DEDENT>except AttributeError:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>if len(self) > <NUM_LIT:0>:<EOL><INDENT>self.Normalize()<EOL><DEDENT>
Initializes the distribution.

        hypos: sequence of hypotheses