Commit fd3a9285 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libpsdxx [WP]: declare LogIndex operator function constant

parent d5648854
......@@ -106,7 +106,7 @@ namespace psd {
* \param f frequency
* \return fractional index of frequency \p f
*/
double operator()(const double& f);
double operator()(const double& f) const;
private:
//! factor in front of exponential function in mapping function
double Ma;
......
......@@ -57,7 +57,7 @@ namespace psd {
/* ---------------------------------------------------------------------- */
double LogIndex::operator()(const double& f)
double LogIndex::operator()(const double& f) const
{
double l = std::log((f-Mb)/Ma)/Mlnc;
return l;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment