From a602020d705dc29a8c7bbf96c13a706356c6cd1a Mon Sep 17 00:00:00 2001 From: Jorge Gil Date: Tue, 20 Oct 2015 22:06:33 +0200 Subject: [PATCH] issue #128 update NAIN calculation formula --- esstoolkit/analysis/DepthmapAnalysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esstoolkit/analysis/DepthmapAnalysis.py b/esstoolkit/analysis/DepthmapAnalysis.py index 04773e5..cacc2ae 100644 --- a/esstoolkit/analysis/DepthmapAnalysis.py +++ b/esstoolkit/analysis/DepthmapAnalysis.py @@ -412,9 +412,9 @@ def calculateNormalisedSegment(self, attributes, values): for i, j in enumerate(td): try: if i < len(nc): - val = (float(feat[nc[i]])**1.2)/float(feat[j]) + val = (float(feat[nc[i]])**1.2)/(float(feat[j])+2.0) else: - val = (float(feat[nc[i-len(nc)]])**1.2)/float(feat[j]) + val = (float(feat[nc[i-len(nc)]])**1.2)/(float(feat[j])+2.0) calc_values.append(val) except: calc_values.append(NULL)