Commit 377528e5 authored by panos's avatar panos Committed by Jérome Perrin

Change the output in the statistical distribution that best fits

parent bd67c7cf
......@@ -235,9 +235,15 @@ class Output(BasicStatisticalMeasures,DistFittest):
###BestDistributionFit###
A=self.ks_test(data)
sheet2.write(14,14,(A.get('distributionType')))
sheet2.write(14,15,(A.get('aParameter')))
sheet2.write(14,16,(A.get('bParameter')))
sheet2.write(15,15,(A.get('aParameterValue')))
sheet2.write(15,16,(A.get('bParameterValue')))
if A['distributionType']=='Normal':
del A['min']
del A['max']
del A['distributionType']
else:
del A['distributionType']
sheet2.write(14,15,(A.keys()[0]))
sheet2.write(14,16,(A.keys()[1]))
sheet2.write(15,15,(A.values()[0]))
sheet2.write(15,16,(A.values()[1]))
book.save(fileName) #Save the excel document
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment