PIFTS 100% funcional
This commit is contained in:
parent
37ce2a3931
commit
4160b7d8dd
2
pifts.py
2
pifts.py
@ -56,7 +56,7 @@ class ProbabilisticIntervalFTS(ifts.IntervalFTS):
|
|||||||
if flrg.strLHS() in self.flrgs:
|
if flrg.strLHS() in self.flrgs:
|
||||||
return self.flrgs[ flrg.strLHS() ].frequencyCount / self.globalFrequency
|
return self.flrgs[ flrg.strLHS() ].frequencyCount / self.globalFrequency
|
||||||
else:
|
else:
|
||||||
return 0
|
return 1/ self.globalFrequency
|
||||||
|
|
||||||
def getUpper(self,flrg):
|
def getUpper(self,flrg):
|
||||||
if flrg.strLHS() in self.flrgs:
|
if flrg.strLHS() in self.flrgs:
|
||||||
|
Loading…
Reference in New Issue
Block a user