From 3ec1b4c5ceae50ad4190e8ba57f70c44fdb8ace3 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 8 Aug 2024 12:53:02 +0400 Subject: [PATCH] #3 rename variable --- pyFTS/partitioners/Huarng.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyFTS/partitioners/Huarng.py b/pyFTS/partitioners/Huarng.py index d322a7e..a402dec 100644 --- a/pyFTS/partitioners/Huarng.py +++ b/pyFTS/partitioners/Huarng.py @@ -19,13 +19,13 @@ class HuarngPartitioner(partitioner.Partitioner): def build(self, data): diff = Transformations.Differential(1) data2 = diff.apply(data) - davg = np.abs( np.mean(data2) / 2 ) + divs = np.abs( np.mean(data2) / 2 ) - if davg <= 1.0: + if divs <= 1.0: base = 0.1 - elif 1 < davg <= 10: + elif 1 < divs <= 10: base = 1.0 - elif 10 < davg <= 100: + elif 10 < divs <= 100: base = 10 else: base = 100