#NEWLINE# def sim( self , nobs = 100 , T = 1 , dt = None , nrepl = 1 ) : #NEWLINE# #INDENT# ( W , t ) = self . simulateW ( nobs = nobs , T = T , dt = dt , nrepl = nrepl ) #NEWLINE# dx = ( self . _drift ( ) + ( self . _sig ( ) * W ) ) #NEWLINE# x = np . cumsum ( dx , 1 ) #NEWLINE# xmean = x . mean ( 0 ) #NEWLINE# return ( x , nobs , t )