//! \brief Returns the absolute tolerance stored as a private member variable in the class
doublegetAbsTolerance()const{
returnabsTolerance;
}
//! \brief Returns the relative tolerance stored as a private member variable in the class
doublegetRelTolerance()const{
returnrelTolerance;
}
//! \brief Calculate deviations for two values.
//! \details Using absolute values of the input arguments: If one of the values are non-zero, the Deviation::abs returned is the difference between the two input values. In addition, if both values are non-zero, the Deviation::rel returned is the absolute deviation divided by the largest value.
//! \details Returning the median of the input vector, i.e. the middle value of the sorted vector if the number of elements is odd or the mean of the two middle values if the number of elements are even. Copy is intentional.
staticdoublemedian(std::vector<double>vec);
//! \brief Calculate average of a vector.
//! \details Returning the average of the input vector, i.e. the sum of all values divided by the number of elements.