return the maximum absolute value of the vector
| 176 | } |
| 177 | // return the maximum absolute value of the vector |
| 178 | double KeyListOpsMethods::getAbsMax() { |
| 179 | if (empty()) return NAN; |
| 180 | |
| 181 | begin(); |
| 182 | double maxVal = abs(getColValNum()); |
| 183 | for (; !end(); next()) { |
| 184 | double currVal = abs(getColValNum()); |
| 185 | maxVal = (currVal > maxVal) ? currVal : maxVal; |
| 186 | } |
| 187 | return maxVal; |
| 188 | } |
| 189 | // return the count of element in the vector |
| 190 | uint32_t KeyListOpsMethods::getCount() { |
| 191 | return _keyList->size(); |