Method: FinModeling::TimeSeriesEstimator#estimate_on
- Defined in:
- lib/finmodeling/time_series_estimator.rb
#estimate_on(date) ⇒ Object
9 10 11 12 |
# File 'lib/finmodeling/time_series_estimator.rb', line 9 def estimate_on(date) x = (date - Date.today) a + (b*x) end |