From d1c8fa81b112b8ec0b75966d55a774ff4d90da23 Mon Sep 17 00:00:00 2001 From: whitews Date: Fri, 9 Oct 2020 11:01:30 -0400 Subject: [PATCH] make quantile private --- flowutils/transforms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flowutils/transforms.py b/flowutils/transforms.py index 5e0bea6..64b22b9 100644 --- a/flowutils/transforms.py +++ b/flowutils/transforms.py @@ -8,8 +8,8 @@ from . import logicle_c -def quantile(x, n): - """return the lower nth quantile""" +def _quantile(x, n): + """return the lower nth _quantile""" try: return sorted(x)[int(n * len(x))] except IndexError: @@ -61,7 +61,7 @@ def logicle( if r_quant: w = None tmp = data_copy[:, i] - r = quantile(tmp[tmp < 0], 0.05) + r = _quantile(tmp[tmp < 0], 0.05) if r is None and w is None: w = 0.5 tmp = _logicle(data_copy[:, i].T, t, m, r, w, a) @@ -88,7 +88,7 @@ def logicle_inverse( if r_quant: w = None tmp = data_copy[:, i] - r = quantile(tmp[tmp < 0], 0.05) + r = _quantile(tmp[tmp < 0], 0.05) if r is None and w is None: w = 0.5 tmp = _logicle_inverse(data_copy[:, i].T, t, m, r, w, a)