Exemplo n.º 1
0
 def cv(self):
     """
     Calculates the Coefficient of variation time trace of the ensamble
     
     returns a Env object
     """        
     return Env(numpy.nanstd(self.array,axis=0)/numpy.nanmean(self.array,axis=0), self.rate, delay=self.delay, tjust=self.tjust)
Exemplo n.º 2
0
 def eta2(self):
     """
     Calculates the eta square (variance divided by mean square) time trace of the ensamble
     
     returns a Env object
     """        
     return Env(numpy.nanvar(self.array,axis=0)/numpy.square(numpy.nanmean(self.array,axis=0)), self.rate, delay=self.delay, tjust=self.tjust)
Exemplo n.º 3
0
 def var(self):
     """
     Calculates Variance time trace of the ensamble
     
     returns a Env object
     """        
     return Env(numpy.nanvar(self.array,axis=0), self.rate, delay=self.delay, tjust=self.tjust)
Exemplo n.º 4
0
 def std(self):
     """
     Calculates Standard Deviation time trace of the ensamble
     
     returns a Env object
     """        
     return Env(numpy.nanstd(self.array,axis=0), self.rate, delay=self.delay, tjust=self.tjust)
Exemplo n.º 5
0
 def median(self):
     """
     Calculates median time trace of the ensamble
     
     returns a Env object
     """        
     return Env(numpy.nanmedian(self.array,axis=0), self.rate, delay=self.delay, tjust=self.tjust)
Exemplo n.º 6
0
 def average(self):
     """
     Calculates average time trace of the ensamble
     
     returns a Env object
     """        
     return Env(numpy.average(self.array,axis=0), self.rate, delay=self.delay, tjust=self.tjust)
Exemplo n.º 7
0
 def get_env(self, key):
     """
     Get element of ensenble by positinal index
     """
     return Env(self.array[key, :],
                self.rate,
                delay=self.delay,
                tjust=self.tjust)