return the minimum absolute value of the vector
| 164 | |
| 165 | // return the minimum absolute value of the vector |
| 166 | double KeyListOpsMethods::getAbsMin() { |
| 167 | if (empty()) return NAN; |
| 168 | |
| 169 | begin(); |
| 170 | double minVal = abs(getColValNum()); |
| 171 | for (; !end(); next()) { |
| 172 | double currVal = abs(getColValNum()); |
| 173 | minVal = (currVal < minVal) ? currVal : minVal; |
| 174 | } |
| 175 | return minVal; |
| 176 | } |
| 177 | // return the maximum absolute value of the vector |
| 178 | double KeyListOpsMethods::getAbsMax() { |
| 179 | if (empty()) return NAN; |