Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
dd6f25a6
Commit
dd6f25a6
authored
Jan 06, 2019
by
thomas.forbriger
Browse files
libpsdxx [WP]: declaration of functions for logarithmic sampling
parent
a2a21f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/libpsdxx/psd.h
View file @
dd6f25a6
...
@@ -124,6 +124,11 @@ namespace psd {
...
@@ -124,6 +124,11 @@ namespace psd {
/* ====================================================================== */
/* ====================================================================== */
//! series container (for frequency values, for example)
typedef
aff
::
Series
<
double
>
TDseries
;
/* ====================================================================== */
//! return absolute value (magnitude) of complex values
//! return absolute value (magnitude) of complex values
TDISeries
abs
(
const
TDCISeries
::
Tcoc
&
s
);
TDISeries
abs
(
const
TDCISeries
::
Tcoc
&
s
);
...
@@ -204,16 +209,32 @@ namespace psd {
...
@@ -204,16 +209,32 @@ namespace psd {
/* ====================================================================== */
/* ====================================================================== */
/*! \brief support sampling in the frequency domain
/*! return a logarithmic frequency scale
*
*
* This class supports logarithmic sampling and averaging in the frequency
* \param df sampling interval in Hz of uniformly samples spectral values
* domain.
* \param nsamples number of samples of spectral data
*
* \param n_per_decade number of samples per frequency decade
* Samples data which is provided on a uniformly spaced frequency axis with
* for logarithmic sampling
* an equal amount of samples per decade and performs averarging.
* \return series of frequency values in Hz with logarithmic spacing and
*
* \p n_per_decade frequency values per decade
* Implemented as a function
*
*/
* This function is used to compute a series of frequency values with
* logarithmic spacing. The return value can be used as input parameter to
* the actual sampling functions.
*/
TDseries
log_frequency
(
const
double
&
df
,
unsigned
int
&
nsamples
,
unsigned
int
&
n_per_decade
);
/*! sample values on a logarithmic frequency axis
*/
TDCISeries
::
Tseries
log_sampling
(
const
TDCISeries
::
Tcoc
&
s
,
const
TDseries
::
Tcoc
&
f
);
/*! sample complex values on a logarithmic frequency axis
*/
TDISeries
::
Tseries
log_sampling
(
const
TDISeries
::
Tcoc
&
s
,
const
TDseries
::
Tcoc
&
f
);
}
// namespace psd
}
// namespace psd
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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