A Calendar from which you can access the whole data.
More...
#include <Calendar.h>
A Calendar from which you can access the whole data.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ Calendar()
Calendar::Calendar |
( |
std::string |
filespath | ) |
|
Constructor.
generates a Calendar with a given data set located in a folder
- Parameters
-
filespath | is path to a folder with the data set |
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
◆ ~Calendar()
Destructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ addDaysToDate()
Date Calendar::addDaysToDate |
( |
Date |
date, |
|
|
int |
daysToAdd |
|
) |
| |
Adds the days to date to 'daysToAdd'.
add days to a given Date
- Parameters
-
date | is the given Date |
daysToAdd | is the number of the days which should be added to date |
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
date | The date. |
daysToAdd | The days to add. |
- Returns
- A Date.
◆ attr_to_index_map
std::unordered_map<std::string, int> Calendar::attr_to_index_map |
map which saves for every attribute name the corresponding index
◆ attribute_names
std::vector<std::string> Calendar::attribute_names |
all attribute names saved in an array
◆ data
std::unordered_map<Date, std::vector<std::vector<std::string> > > Calendar::data |
whole data saved in map while each Date is mapped to its corresponding data set
◆ entity_colors
std::unordered_map<std::string, QVector3D> Calendar::entity_colors |
Initial value:map which saves for every possible entity in the data set a specific Color, which is later used to draw lines on the PCSystem
◆ maxDate
◆ minDate
minimum date and maximum date of the time series data
◆ minMax
std::unordered_map<std::string, std::pair<float, float> > Calendar::minMax |
minimum and maximum for each attribute in the data set. Saved in a map where each name of the attribute is mapped to pair of minimum and maximum value. First value of the pair is the minimum and second is the maximum value.
The documentation for this class was generated from the following files: