diff --git a/chen.py b/chen.py index 1eae509..6af19b2 100644 --- a/chen.py +++ b/chen.py @@ -21,7 +21,9 @@ class ConventionalFLRG: class ConventionalFTS(fts.FTS): def __init__(self,name): - super(ConventionalFTS, self).__init__(1,name) + super(ConventionalFTS, self).__init__(1,"CFTS") + self.name = "Conventional FTS" + self.detail = "Chen" self.flrgs = {} def generateFLRG(self, flrs): diff --git a/fts.py b/fts.py index 186676f..22233ee 100644 --- a/fts.py +++ b/fts.py @@ -6,7 +6,11 @@ class FTS: self.sets = {} self.flrgs = {} self.order = order + self.shortname = name self.name = name + self.detail = name + self.isSeasonal = False + self.isInterval = False def fuzzy(self,data): best = {"fuzzyset":"", "membership":0.0} diff --git a/hofts.py b/hofts.py index 1a61b84..2f74d28 100644 --- a/hofts.py +++ b/hofts.py @@ -33,7 +33,9 @@ class HighOrderFLRG: class HighOrderFTS(fts.FTS): def __init__(self,name): - super(HighOrderFTS, self).__init__(1,name) + super(HighOrderFTS, self).__init__(1,"HOFTS") + self.name = "High Order FTS" + self.detail = "Chen" self.order = 1 self.setsDict = {} diff --git a/ifts.py b/ifts.py index 62aa4c7..b7ad5f1 100644 --- a/ifts.py +++ b/ifts.py @@ -3,8 +3,11 @@ from pyFTS import * class IntervalFTS(hofts.HighOrderFTS): def __init__(self,name): - super(IntervalFTS, self).__init__(name) + super(IntervalFTS, self).__init__("IFTS") + self.name = "Interval FTS" + self.detail = "Silva, P.; GuimarĂ£es, F.; Sadaei, H." self.flrgs = {} + self.isInterval = True def getUpper(self,flrg): if flrg.strLHS() in self.flrgs: diff --git a/ismailefendi.py b/ismailefendi.py index 8787ae2..594cd7b 100644 --- a/ismailefendi.py +++ b/ismailefendi.py @@ -29,7 +29,9 @@ class ImprovedWeightedFLRG: class ImprovedWeightedFTS(fts.FTS): def __init__(self,name): - super(ImprovedWeightedFTS, self).__init__(1,name) + super(ImprovedWeightedFTS, self).__init__(1,"IWFTS") + self.name = "Improved Weighted FTS" + self.detail = "Ismail & Efendi" self.setsDict = {} def generateFLRG(self, flrs): diff --git a/pifts.py b/pifts.py index 43d14e1..f1f5288 100644 --- a/pifts.py +++ b/pifts.py @@ -27,9 +27,12 @@ class ProbabilisticIntervalFLRG(hofts.HighOrderFLRG): class ProbabilisticIntervalFTS(ifts.IntervalFTS): def __init__(self,name): - super(ProbabilisticIntervalFTS, self).__init__(name) + super(ProbabilisticIntervalFTS, self).__init__("PIFTS") + self.name = "Probabilistic Interval FTS" + self.detail = "Silva, P.; GuimarĂ£es, F.; Sadaei, H." self.flrgs = {} self.globalFrequency = 0 + self.isInterval = True def generateFLRG(self, flrs): flrgs = {} diff --git a/sadaei.py b/sadaei.py index 15ae6e3..00288f0 100644 --- a/sadaei.py +++ b/sadaei.py @@ -32,7 +32,9 @@ class ExponentialyWeightedFLRG: class ExponentialyWeightedFTS(fts.FTS): def __init__(self,name): - super(ExponentialyWeightedFTS, self).__init__(1,name) + super(ExponentialyWeightedFTS, self).__init__(1,"EWFTS") + self.name = "Exponentialy Weighted FTS" + self.detail = "Sadaei" self.c = 1 def generateFLRG(self, flrs, c): diff --git a/sfts.py b/sfts.py index ab9487c..d14cd4c 100644 --- a/sfts.py +++ b/sfts.py @@ -21,8 +21,11 @@ class SeasonalFLRG(fts.FTS): class SeasonalFTS(fts.FTS): def __init__(self,name): - super(SeasonalFTS, self).__init__(1,name) + super(SeasonalFTS, self).__init__(1,"SFTS") + self.name = "Seasonal FTS" + self.detail = "Chen" self.seasonality = 1 + self.isSeasonal = True def generateFLRG(self, flrs): diff --git a/yu.py b/yu.py index 58ae51a..4f40005 100644 --- a/yu.py +++ b/yu.py @@ -30,7 +30,10 @@ class WeightedFLRG(fts.FTS): class WeightedFTS(fts.FTS): def __init__(self,name): - super(WeightedFTS, self).__init__(1,name) + super(WeightedFTS, self).__init__(1,"WFTS") + self.name = "Weighted FTS" + self.detail = "Yu" + def generateFLRG(self, flrs): flrgs = {}