Finance manager
Лабораторна робота №2 - Документація коду
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ForecastModel Class Reference

#include <ForecastModel.h>

Public Member Functions

double forecastNextMonth (const std::vector< Transaction > &history)
 
double rollingAverage (const std::vector< double > &values, int window)
 
void trainModel (const std::vector< Transaction > &history)
 
double evaluateForecast (const std::vector< Transaction > &actual)
 

Public Attributes

int forecastHorizon = 30
 
double confidence = 0.8
 

Member Function Documentation

◆ evaluateForecast()

double ForecastModel::evaluateForecast ( const std::vector< Transaction > &  actual)
inline

◆ forecastNextMonth()

double ForecastModel::forecastNextMonth ( const std::vector< Transaction > &  history)
inline

◆ rollingAverage()

double ForecastModel::rollingAverage ( const std::vector< double > &  values,
int  window 
)
inline

◆ trainModel()

void ForecastModel::trainModel ( const std::vector< Transaction > &  history)
inline

Member Data Documentation

◆ confidence

double ForecastModel::confidence = 0.8

◆ forecastHorizon

int ForecastModel::forecastHorizon = 30

The documentation for this class was generated from the following file: