mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Calculate the variance of the mean for a process given its PSD.
Functor which manages the GSL integration workspace memory.
paramsT | is a parameter structure with the correct interface. |
Definition at line 159 of file psdVarMean.hpp.
#include <sigproc/psdVarMean.hpp>
Public Member Functions | |
psdVarMean () | |
Default c'tor. More... | |
psdVarMean (size_t wm) | |
Constructor which initializes workspace size. More... | |
~psdVarMean () | |
d'tor cleans up the workspace memory More... | |
realT | operator() (realT &error, std::vector< realT > &freq, std::vector< realT > &psd, realT T) |
Calculate the variance of the mean for a psd over a sample length. More... | |
Public Attributes | |
realT | extrapAlpha {0} |
The extrapolation exponent. No extrapolation if 0. More... | |
Protected Member Functions | |
void | init () |
Initializes the gsl library. More... | |
Protected Attributes | |
gsl_integration_workspace * | w {nullptr} |
The GSL integration workspace memory. More... | |
size_t | wSize {10000} |
The size of the GSL workspace. More... | |
|
inline |
Default c'tor.
Definition at line 179 of file psdVarMean.hpp.
References mx::sigproc::psdVarMean< paramsT >::init().
|
inline |
Constructor which initializes workspace size.
[in] | wm | Size of the GSL integration workspace |
Definition at line 185 of file psdVarMean.hpp.
References mx::sigproc::psdVarMean< paramsT >::init(), and mx::sigproc::psdVarMean< paramsT >::wSize.
|
inline |
d'tor cleans up the workspace memory
Definition at line 192 of file psdVarMean.hpp.
References mx::sigproc::psdVarMean< paramsT >::w.
|
inlineprotected |
Initializes the gsl library.
Definition at line 171 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::psdVarMean().
|
inline |
Calculate the variance of the mean for a psd over a sample length.
[out] | error | The error estimate returned by gsl_integration_qagiu |
[in] | freq | The frequency vector |
[in] | psd | The psd vector |
[in] | T | The sample length (units approprate for freq) |
Definition at line 204 of file psdVarMean.hpp.
References mx::sigproc::psdVarMean< paramsT >::extrapAlpha, mx::sigproc::psdVarMean< paramsT >::w, and mx::sigproc::psdVarMean< paramsT >::wSize.
realT mx::sigproc::psdVarMean< paramsT >::extrapAlpha {0} |
The extrapolation exponent. No extrapolation if 0.
Definition at line 163 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::operator()().
|
protected |
The GSL integration workspace memory.
Definition at line 166 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::~psdVarMean(), and mx::sigproc::psdVarMean< paramsT >::operator()().
|
protected |
The size of the GSL workspace.
Definition at line 168 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::psdVarMean(), and mx::sigproc::psdVarMean< paramsT >::operator()().