(self, times)
mu must be greater than -1. The parameter times is a list of times to sample at.
mu must be greater than -1. The parameter times is a list of times to sample at.
mu must be greater than - 1 . The parameter times is a list of times to sample at .
def _generate_sample_path_no_absorption(self, times):
        "mu must be greater than -1. The parameter times is a list of times to sample at."
        if self.mu<=-1:
            print "Attn: mu must be greater than -1. It is currently %f."%self.mu
            return
        else:
            if not self.conditional:
                x=self.startPosition
                t=self.startTime
                path=[]
                for time in times:
                    delta=float(time-t)
                    try:
                        y=self.Poi.rvs(0.5*x/delta)
                        x=self.Gamma.rvs(y+self.mu+1)*2*delta
                    except:
                        pass
                    path.append((time,x))
                    t=time
            else:
                path = bridge_creation(self, times, 0)
                return path
            return [(p[0],self.rescalePath(p[1])) for p in path]
def _generate_sample_path_no_absorption ( self , times ) : if self . mu <= - 1 : print "Attn: mu must be greater than -1. It is currently %f." % self . mu return else : if not self . conditional : x = self . startPosition t = self . startTime path = [ ] for time in times : delta = float ( time - t ) try : y = self . Poi . rvs ( 0.5 * x / delta ) x = self . Gamma . rvs ( y + self . mu + 1 ) * 2 * delta except : pass path . append ( ( time , x ) ) t = time else : path = bridge_creation ( self , times , 0 ) return path return [ ( p [ 0 ] , self . rescalePath ( p [ 1 ] ) ) for p in path ]