From 7501f6926286f55cbf35af9642b7d5c29f5a1c69 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Wed, 28 Dec 2016 15:37:34 +0100 Subject: [PATCH] Simplified further. --- wafo/kdetools/kdetools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wafo/kdetools/kdetools.py b/wafo/kdetools/kdetools.py index ad67c07..5adb937 100644 --- a/wafo/kdetools/kdetools.py +++ b/wafo/kdetools/kdetools.py @@ -137,7 +137,7 @@ class _KDE(object): return args def eval_grid_fast(self, *args, **kwds): - """Evaluate the estimated pdf on a grid. + """Evaluate the estimated pdf on a grid using fft. Parameters ---------- @@ -1113,8 +1113,8 @@ class BKRegression(object): plo, pup = self.prb_ci(c_s, prb_s.data, alpha) prb_s.dataCI = np.vstack((plo, pup)).T - prb_s.prediction_error_avg = np.trapz( - pup - plo, x_s) / (x_s[-1] - x_s[0]) + prb_s.prediction_error_avg = (np.trapz(pup - plo, x_s) / + (x_s[-1] - x_s[0])) if label: prb_s.plot_kwds['label'] = label