lib/tealeaves/naive_forecast.rb
# Returns a prediction for the next period, or for the next n
# periods.
Returns a prediction for the next period, or for the next n
periods.
Returns a prediction for the next period or for the next n periods .
def predict(n=nil)
      if n.nil?
        @time_series.last
      else
        [@time_series.last] * n
      end
    end
def predict ( n = nil ) if n . nil? @time_series . last else [ @time_series . last ] * n end end
Returns a prediction for the next period, or for the next n
periods.
Returns a prediction for the next period or for the next n periods .
n
<not_specific>