|
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 160 of file psdVarMean.hpp.
#include <sigproc/psdVarMean.hpp>
Public Member Functions | |
| psdVarMean () | |
| Default c'tor. | |
| psdVarMean (size_t wm) | |
| Constructor which initializes workspace size. | |
| ~psdVarMean () | |
| d'tor cleans up the workspace memory | |
| 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. | |
Public Attributes | |
| realT | extrapAlpha { 0 } |
| The extrapolation exponent. No extrapolation if 0. | |
Protected Member Functions | |
| void | init () |
| Initializes the gsl library. | |
Protected Attributes | |
| gsl_integration_workspace * | w { nullptr } |
| The GSL integration workspace memory. | |
| size_t | wSize { 10000 } |
| The size of the GSL workspace. | |
|
inline |
Default c'tor.
Definition at line 180 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 186 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 193 of file psdVarMean.hpp.
References mx::sigproc::psdVarMean< paramsT >::w.
|
inlineprotected |
Initializes the gsl library.
Definition at line 172 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::psdVarMean(), and 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 205 of file psdVarMean.hpp.
References mx::error, 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 164 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::operator()().
|
protected |
The GSL integration workspace memory.
Definition at line 167 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 169 of file psdVarMean.hpp.
Referenced by mx::sigproc::psdVarMean< paramsT >::psdVarMean(), and mx::sigproc::psdVarMean< paramsT >::operator()().