#NEWLINE# @ classmethod #NEWLINE# def CreateWithPrior( cls , inferType , priorArgDict , Data ) : #NEWLINE# #INDENT# " Create GaussObsModel and its prior distr.\n        Returns object that does not yet have global parameters\n           until init_global_params() is called.\n        Until then, it has no components and can't be used in learn algs.\n    " #NEWLINE# D = Data . dim #NEWLINE# if ( inferType == 'EM' ) : #NEWLINE# #INDENT# obsPrior = None #NEWLINE# return cls ( inferType , D , obsPrior , min_covar = priorArgDict [ 'min_covar' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obsPrior = GaussGammaDistr . CreateAsPrior ( priorArgDict , Data ) #NEWLINE# return cls ( inferType , D , obsPrior )