Class: FinModeling::LinearTrendForecastingPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/finmodeling/linear_trend_forecasting_policy.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ LinearTrendForecastingPolicy

Returns a new instance of LinearTrendForecastingPolicy.



3
4
5
# File 'lib/finmodeling/linear_trend_forecasting_policy.rb', line 3

def initialize(args)
  @vals = args
end

Instance Method Details

#fi_over_nfa_on(date) ⇒ Object



15
16
17
# File 'lib/finmodeling/linear_trend_forecasting_policy.rb', line 15

def fi_over_nfa_on(date)
  @vals[:fi_over_nfa_estimator].estimate_on(date)
end

#revenue_on(date) ⇒ Object



7
8
9
# File 'lib/finmodeling/linear_trend_forecasting_policy.rb', line 7

def revenue_on(date)
  @vals[:revenue_estimator].estimate_on(date)
end

#sales_over_noa_on(date) ⇒ Object



19
20
21
# File 'lib/finmodeling/linear_trend_forecasting_policy.rb', line 19

def sales_over_noa_on(date)
  @vals[:sales_over_noa_estimator].estimate_on(date)
end

#sales_pm_on(date) ⇒ Object



11
12
13
# File 'lib/finmodeling/linear_trend_forecasting_policy.rb', line 11

def sales_pm_on(date)
  @vals[:sales_pm_estimator].estimate_on(date)
end