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)
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)
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)
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)
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)
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)
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)