Skip to content

Commit

Permalink
issue #128
Browse files Browse the repository at this point in the history
update NAIN calculation formula
  • Loading branch information
jorgegil committed Oct 20, 2015
1 parent e40af02 commit a602020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esstoolkit/analysis/DepthmapAnalysis.py
Expand Up @@ -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)
Expand Down

0 comments on commit a602020

Please sign in to comment.