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): ...@@ -235,9 +235,15 @@ class Output(BasicStatisticalMeasures,DistFittest):
###BestDistributionFit### ###BestDistributionFit###
A=self.ks_test(data) A=self.ks_test(data)
sheet2.write(14,14,(A.get('distributionType'))) sheet2.write(14,14,(A.get('distributionType')))
sheet2.write(14,15,(A.get('aParameter'))) if A['distributionType']=='Normal':
sheet2.write(14,16,(A.get('bParameter'))) del A['min']
sheet2.write(15,15,(A.get('aParameterValue'))) del A['max']
sheet2.write(15,16,(A.get('bParameterValue'))) 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 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