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
99f1d14c
Commit
99f1d14c
authored
Jan 10, 2019
by
thomas.forbriger
Browse files
libpsdxx [WP][FIX]: make reference function input arguments constant
parent
e12c59f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/libs/libpsdxx/function_lin_frequency.cc
View file @
99f1d14c
...
...
@@ -39,7 +39,7 @@
namespace
psd
{
TDseries
lin_frequency
(
const
double
&
df
,
unsigned
int
&
nsamples
)
const
unsigned
int
&
nsamples
)
{
PSDXX_assert
(
nsamples
>
0
,
"at least one sample must be present"
);
...
...
@@ -50,7 +50,7 @@ namespace psd {
}
return
(
retval
);
}
// TDseries lin_frequency(const double& df,
// unsigned int& nsamples)
//
const
unsigned int& nsamples)
}
// namespace psd
...
...
src/libs/libpsdxx/function_log_frequency.cc
View file @
99f1d14c
...
...
@@ -77,8 +77,8 @@ namespace psd {
*
*/
TDseries
log_frequency
(
const
double
&
df
,
unsigned
int
&
nsamples
,
unsigned
int
&
n_per_decade
)
const
unsigned
int
&
nsamples
,
const
unsigned
int
&
n_per_decade
)
{
PSDXX_assert
(
n_per_decade
>
0
,
"must be positive and finite"
);
PSDXX_assert
(
nsamples
>
0
,
"must be positive and finite"
);
...
...
@@ -96,8 +96,8 @@ namespace psd {
}
return
(
retval
);
}
// TDseries log_frequency(const double& df,
// unsigned int& nsamples,
// unsigned int& n_per_decade)
//
const
unsigned int& nsamples,
//
const
unsigned int& n_per_decade)
}
// namespace psd
...
...
src/libs/libpsdxx/psd.h
View file @
99f1d14c
...
...
@@ -219,7 +219,7 @@ namespace psd {
* This function is a corresponding function to log_frequency().
*/
TDseries
lin_frequency
(
const
double
&
df
,
unsigned
int
&
nsamples
);
const
unsigned
int
&
nsamples
);
/*! \brief return a logarithmic frequency scale
*
...
...
@@ -235,8 +235,8 @@ namespace psd {
* the actual sampling functions.
*/
TDseries
log_frequency
(
const
double
&
df
,
unsigned
int
&
nsamples
,
unsigned
int
&
n_per_decade
);
const
unsigned
int
&
nsamples
,
const
unsigned
int
&
n_per_decade
);
/*! sample values on a logarithmic frequency axis
*/
...
...
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