ProteoWizard
|
Namespaces | |
utilities | |
Typedefs | |
typedef boost::uint32_t | uint32_t |
Functions | |
template<typename TIterator , typename TFilterIterator , typename TOutputIterator > | |
void | filter_sequence (TIterator dataBeg, TIterator dataEnd, TFilterIterator filterBeg, size_t fsize, TOutputIterator resBeg, bool circular=false, uint32_t sides=2) |
template<typename TContainer > | |
void | filter (const TContainer &data, const TContainer &filter, TContainer &result, bool circular=false, uint32_t sides=2) |
Applies linear convolution (filtering) to a univariate time series. More... | |
template<typename TReal > | |
TReal | getGaussianFilter (std::vector< TReal > &gauss, TReal fwhm=20) |
generate the gauss filter function for filtering of peaks with fwhm (full width at half max) More... | |
template<typename TReal > | |
TReal | getGaussianFilterQuantile (std::vector< TReal > &gauss, TReal fwhm=20, TReal quantile=0.01) |
generate the gauss filter function for filtering of peaks with fwhm (full width at half max) More... | |
template<typename TReal > | |
TReal | getGaussian1DerFilter (std::vector< TReal > &gauss1d, TReal fwhm=20) |
generate first derivative Gauss More... | |
template<typename TReal > | |
TReal | getGaussian1DerFilterQuantile (std::vector< TReal > &gauss1d, TReal fwhm=20, TReal quantile=0.1) |
typedef boost::uint32_t ralab::base::filter::uint32_t |
Definition at line 47 of file filter.hpp.
void ralab::base::filter::filter_sequence | ( | TIterator | dataBeg, |
TIterator | dataEnd, | ||
TFilterIterator | filterBeg, | ||
size_t | fsize, | ||
TOutputIterator | resBeg, | ||
bool | circular = false , |
||
uint32_t | sides = 2 |
||
) |
[in] | dataBeg | a univariate time series. |
[in] | filterBeg | a vector of filter coefficients in reverse time order (as for AR or MA coefficients). Lenght of filter must be odd. |
[out] | resBeg | result |
[in] | circular | If TRUE, wrap the filter around the ends of the series, otherwise assume external values are missing (NA). |
[in] | sides | currently only sides 2 supported.... |
Definition at line 49 of file filter.hpp.
References ralab::base::filter::utilities::prepareData().
Referenced by filter().
void ralab::base::filter::filter | ( | const TContainer & | data, |
const TContainer & | filter, | ||
TContainer & | result, | ||
bool | circular = false , |
||
uint32_t | sides = 2 |
||
) |
Applies linear convolution (filtering) to a univariate time series.
The convolution filter is where o is the offset: see sides for how it is determined.
sides | for convolution filters only. If sides=1 the filter coefficients are for past values only; if sides=2 they are centred around lag 0. In this case the length of the filter should be odd, but if it is even, more of the filter is forward in time than backward |
[in] | data | a univariate time series. |
[in] | filter | a vector of filter coefficients in reverse time order (as for AR or MA coefficients). Lenght of filter must be odd. |
[out] | result | result |
[in] | circular | If TRUE, wrap the filter around the ends of the series, otherwise assume external values are missing (NA). |
[in] | sides | currently only sides 2 supported.... |
Definition at line 112 of file filter.hpp.
References filter_sequence().
Referenced by pwiz::math::MatchedFilter::details::computeCorrelation(), pwiz::math::MatchedFilter::details::createFilter(), ralab::base::ms::PeakPicker< TReal, TIntegrator >::operator()(), test(), test_createFilter(), testEven(), testEvenMS2(), testHasBinaryData(), testIdSet(), testIndexSet(), testMassAnalyzerFilter(), testMS2Activation(), testMSLevelSet(), testMZPresentFilter(), testPrecursorMassRemoval(), testScanEventSet(), testScanNumberSet(), testScanTimeRange(), testSelectedIndices(), and testSpectrumIdentificationProtocol().
TReal ralab::base::filter::getGaussianFilter | ( | std::vector< TReal > & | gauss, |
TReal | fwhm = 20 |
||
) |
generate the gauss filter function for filtering of peaks with fwhm (full width at half max)
[out] | gauss | Gaussian for filtering |
[in] | fwhm | full width at half max in points |
Definition at line 40 of file gaussfilter.hpp.
References getGaussianFilterQuantile(), ralab::base::filter::utilities::getGaussWorker(), and x.
TReal ralab::base::filter::getGaussianFilterQuantile | ( | std::vector< TReal > & | gauss, |
TReal | fwhm = 20 , |
||
TReal | quantile = 0.01 |
||
) |
generate the gauss filter function for filtering of peaks with fwhm (full width at half max)
[out] | gauss | Gaussian for filtering |
[in] | fwhm | full width at half max in points |
quantile | would mean that the generated distribution covers at least 99.8 of mass |
Definition at line 59 of file gaussfilter.hpp.
References ralab::base::filter::utilities::getGaussWorker(), ralab::base::base::seq(), and x.
Referenced by getGaussianFilter(), and ralab::base::ms::PeakPicker< TReal, TIntegrator >::PeakPicker().
TReal ralab::base::filter::getGaussian1DerFilter | ( | std::vector< TReal > & | gauss1d, |
TReal | fwhm = 20 |
||
) |
generate first derivative Gauss
[out] | gauss1d | Gaussian for filtering |
[in] | fwhm | full width at half max in points |
Definition at line 87 of file gaussfilter.hpp.
References ralab::base::filter::utilities::getGaussian1DerWorker(), ralab::base::base::seq(), and x.
TReal ralab::base::filter::getGaussian1DerFilterQuantile | ( | std::vector< TReal > & | gauss1d, |
TReal | fwhm = 20 , |
||
TReal | quantile = 0.1 |
||
) |
[out] | gauss1d | Gaussian for filtering |
[in] | fwhm | full width at half max in points |
Definition at line 102 of file gaussfilter.hpp.
References ralab::base::filter::utilities::getGaussian1DerWorker(), ralab::base::base::seq(), and x.