Every line of 'mean median mode' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
213 @property 214 def median(self): 215 """ 216 Median of *k*-mer counts. 217 """ 218 return np.median(self.counts)
23 def mode(x): 24 """Mode of methylation rate.""" 25 if x.ndim > 2: 26 x = x.mean(axis=2) 27 return x.mean(axis=1).round().astype(np.int8)