62 template <
class Key,
class T,
class Cmp >
63 static std::vector<Key>
getKeys(
const std::map<Key, T, Cmp> & myMap)
65 std::vector<Key> keys;
66 for(
typename std::map<Key, T>::const_iterator i = myMap.begin(); i != myMap.end(); i++)
68 keys.push_back(i->first);
79 template <
class Key,
class T >
80 static std::vector<Key>
getKeys(
const std::map<Key, T> & myMap)
82 std::vector<Key> keys;
83 for(
typename std::map<Key, T>::const_iterator i = myMap.begin(); i != myMap.end(); i++)
85 keys.push_back(i->first);
96 template <
class Key,
class T,
class Cmp >
97 static std::vector<T>
getValues(
const std::map<Key, T, Cmp> & myMap)
99 std::vector<T> values;
100 for(
typename std::map<Key, T>::const_iterator i = myMap.begin(); i != myMap.end(); i++)
102 values.push_back(i->second);
113 template <
class Key,
class T >
114 static std::vector<T>
getValues(
const std::map<Key, T> & myMap)
116 std::vector<T> values;
117 for(
typename std::map<Key, T>::const_iterator i = myMap.begin(); i != myMap.end(); i++)
119 values.push_back(i->second);
128 #endif //_MAPTOOLS_H_
This class allows to perform a correspondence analysis.