8 double forecast(
const std::vector<Transaction>& history,
int months)
override;
Оголошення абстрактного базового класу (інтерфейсу) ForecastStrategy.
Definition ExponentialSmoothingStrategy.h:4
double alpha
Definition ExponentialSmoothingStrategy.h:6
ExponentialSmoothingStrategy(double a=0.5)
Definition ExponentialSmoothingStrategy.h:7
double forecast(const std::vector< Transaction > &history, int months) override
Чисто віртуальний (pure virtual) метод для розрахунку прогнозу.
Definition ExponentialSmoothingStrategy.cpp:4
Абстрактний базовий клас (інтерфейс) для стратегій прогнозування.
Definition ForecastStrategy.h:21