From 5a2c8d79b31777cd420c30e0fe0ee928bc5747d1 Mon Sep 17 00:00:00 2001 From: "Per.Andreas.Brodtkorb" Date: Fri, 11 Nov 2011 14:10:07 +0000 Subject: [PATCH] Small bugfix --- pywafo/src/wafo/kdetools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pywafo/src/wafo/kdetools.py b/pywafo/src/wafo/kdetools.py index 0fe4a24..7b16ce9 100644 --- a/pywafo/src/wafo/kdetools.py +++ b/pywafo/src/wafo/kdetools.py @@ -821,8 +821,8 @@ mkernel_laplace = _KernelLaplace(r=7.0, stats=_stats_lapl) class _KernelLogistic(_Kernel): def _kernel(self, x): - s = exp(x) - return np.prod(s / (s + 1) ** 2, axis=0) + s = exp(-x) + return np.prod(1.0 / (s + 1) ** 2, axis=0) mkernel_logistic = _KernelLogistic(r=7.0, stats=_stats_logi) _MKERNEL_DICT = dict( @@ -1733,7 +1733,6 @@ def accum(accmap, a, func=None, size=None, fill_value=0, dtype=None): out[s] = fill_value else: out[s] = func(vals[s]) - return out def qlevels(pdf, p=(10, 30, 50, 70, 90, 95, 99, 99.9), x1=None, x2=None):