Module: TeaLeaves
- Defined in:
- lib/tealeaves.rb,
lib/tealeaves/forecast.rb,
lib/tealeaves/moving_average.rb,
lib/tealeaves/naive_forecast.rb,
lib/tealeaves/seasonal_components.rb,
lib/tealeaves/brute_force_optimization.rb,
lib/tealeaves/exponential_smoothing_forecast.rb,
lib/tealeaves/single_exponential_smoothing_forecast.rb
Defined Under Namespace
Modules: ArrayMethods
Classes: BruteForceOptimization, ExponentialSmoothingForecast, Forecast, MovingAverage, NaiveForecast, SeasonalComponents, SingleExponentialSmoothingForecast
Class Method Summary
collapse
Class Method Details
.forecast(time_series, period, periods_ahead = nil) ⇒ Object
14
15
16
|
# File 'lib/tealeaves.rb', line 14
def self.forecast(time_series, period, periods_ahead=nil)
optimal_model(time_series, period).predict(periods_ahead)
end
|
.optimal_model(time_series, period) ⇒ Object