Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
fd3a9285
Commit
fd3a9285
authored
Jan 14, 2019
by
thomas.forbriger
Browse files
libpsdxx [WP]: declare LogIndex operator function constant
parent
d5648854
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/libpsdxx/helper.h
View file @
fd3a9285
...
...
@@ -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
;
...
...
src/libs/libpsdxx/log_index.cc
View file @
fd3a9285
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment