Finance manager
Лабораторна робота №2 - Документація коду
Loading...
Searching...
No Matches
ExponentialSmoothingStrategy.h
Go to the documentation of this file.
1#pragma once
2#include "ForecastStrategy.h"
3
5public:
6 double alpha;
7 ExponentialSmoothingStrategy(double a = 0.5) : alpha(a) {}
8 double forecast(const std::vector<Transaction>& history, int months) override;
9};
Оголошення абстрактного базового класу (інтерфейсу) 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