#NEWLINE# def simulate_joint( self , bdb , generator_id , targets , _constraints , modelno = None , num_predictions = 1 ) : #NEWLINE# #INDENT# with bdb . savepoint ( ) : #NEWLINE# #INDENT# if ( modelno is None ) : #NEWLINE# #INDENT# modelnos = self . _modelnos ( bdb , generator_id ) #NEWLINE# modelno = self . prng . choice ( modelnos ) #NEWLINE# #UNINDENT# ( mus , sigmas ) = self . _model_mus_sigmas ( bdb , generator_id , modelno ) #NEWLINE# return [ [ self . prng . gauss ( mus [ colno ] , sigmas [ colno ] ) for ( _ , colno ) in targets ] for _ in range ( num_predictions ) ]