Class: TeaLeaves::ExponentialSmoothingForecast::NoSeasonalityStrategy

Inherits:
SeasonalityStrategy show all
Defined in:
lib/tealeaves/exponential_smoothing_forecast.rb

Instance Method Summary collapse

Methods inherited from SeasonalityStrategy

#initialize

Constructor Details

This class inherits a constructor from TeaLeaves::ExponentialSmoothingForecast::SeasonalityStrategy

Instance Method Details

#apply(forecast, parameters, n) ⇒ Object



66
67
68
# File 'lib/tealeaves/exponential_smoothing_forecast.rb', line 66

def apply(forecast, parameters, n)
  forecast
end

#new_values(*args) ⇒ Object



58
59
60
# File 'lib/tealeaves/exponential_smoothing_forecast.rb', line 58

def new_values(*args)
  []
end

#p(value, params) ⇒ Object



51
52
53
# File 'lib/tealeaves/exponential_smoothing_forecast.rb', line 51

def p(value, params)
  value
end

#start_indexObject



62
63
64
# File 'lib/tealeaves/exponential_smoothing_forecast.rb', line 62

def start_index
  1
end

#t(value, new_level) ⇒ Object



55
56
# File 'lib/tealeaves/exponential_smoothing_forecast.rb', line 55

def t(value, new_level)
end