Commit 9140caea authored by Georgios Dagkakis's avatar Georgios Dagkakis

Globals.getConfidenceIntervals to use KE tool also for the mean

parent 06e3ccbe
......@@ -274,11 +274,12 @@ def getConfidenceIntervals(value_list):
'ub': value_list[0],
'avg': value_list[0], }
from dream.KnowledgeExtraction.ConfidenceIntervals import Intervals
import numpy
from dream.KnowledgeExtraction.StatisticalMeasures import BasicStatisticalMeasures
BSM=BasicStatisticalMeasures()
lb, ub = Intervals().ConfidIntervals(value_list, G.confidenceLevel)
return {'lb': lb,
'ub': ub,
'avg': numpy.mean(value_list) }
'avg': BSM.mean(value_list) }
# #===========================================================================
# # printTrace
......
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