Commit 99f1d14c authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libpsdxx [WP][FIX]: make reference function input arguments constant

parent e12c59f4
......@@ -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
......
......@@ -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
......
......@@ -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
*/
......
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