1 #ifndef CATEGORY_HPP_INCLUDED
2 #define CATEGORY_HPP_INCLUDED
19 #include <initializer_list>
21 #include <boost/any.hpp>
23 #include "dataframe.hpp"
25 #include "category.hpp"
32 std::string catVarName =
"";
33 std::vector<int> dummySet;
34 std::map<int, std::string> categorySet;
35 std::vector<int> catVarRanks;
36 std::vector<std::vector<int> > dummyVarData;
40 categoryType(std::string vName, std::map<int,std::string> catSet);
41 categoryType(std::string vName, std::map<int,std::string> catSet,
void* ptrData);
43 categoryType(std::string vName, std::map<int,std::string> catSet, std::vector<int>* ptrData);
45 std::vector< std::vector<int> >getDummyVarData();
46 void setCategoryLevels(std::vector<std::string> levelStrList, std::vector<int> levelIntList);
55 #endif // CATEGORY_HPP_INCLUDED
Definition: category.hpp:28
void setCategoryLevels(std::vector< std::string > levelStrList, std::vector< int > levelIntList)
Definition: category.cpp:168
std::vector< int > getCatVarRanks()
Definition: category.cpp:205
void setCatVarRanks(std::vector< int > cData)
Definition: category.cpp:180
categoryType()
Definition: category.cpp:106
std::map< int, std::string > getCategoryLevels()
Definition: category.cpp:197
void addLevNameToData(std::vector< int > cData)
Definition: category.cpp:214
void setDummyVarData(std::vector< std::vector< int > > dummyVData)
Definition: category.cpp:189