Acréscimo de informações aos modelos

This commit is contained in:
Petrônio Cândido de Lima e Silva 2016-10-25 16:21:32 -02:00
parent ce5c267505
commit b613c6db8a
9 changed files with 32 additions and 8 deletions

View File

@ -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):

4
fts.py
View File

@ -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}

View File

@ -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 = {}

View File

@ -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:

View File

@ -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):

View File

@ -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 = {}

View File

@ -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):

View File

@ -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):

5
yu.py
View File

@ -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 = {}