ProteoWizard
Public Types | Public Member Functions | Public Attributes | List of all members
ralab::base::resample::FTMSCompFunctor< TReal > Struct Template Reference

FTMS Comparator. More...

#include <masscomparefunctors.hpp>

Public Types

typedef TReal value_type
 

Public Member Functions

 FTMSCompFunctor (value_type window, value_type mass)
 brief window at mass, i.e. 0.1 Da at 400Da More...
 
value_type operator() (value_type val)
 brief returns size of windows for this mass More...
 
bool operator() (value_type pval, value_type cval)
 brief compares two masses, returns true if they match false otherwise More...
 

Public Attributes

value_type window_
 
value_type mass_
 
value_type invR_
 

Detailed Description

template<typename TReal>
struct ralab::base::resample::FTMSCompFunctor< TReal >

FTMS Comparator.

Definition at line 97 of file masscomparefunctors.hpp.

Member Typedef Documentation

§ value_type

template<typename TReal >
typedef TReal ralab::base::resample::FTMSCompFunctor< TReal >::value_type

Definition at line 99 of file masscomparefunctors.hpp.

Constructor & Destructor Documentation

§ FTMSCompFunctor()

template<typename TReal >
ralab::base::resample::FTMSCompFunctor< TReal >::FTMSCompFunctor ( value_type  window,
value_type  mass 
)
inline

brief window at mass, i.e. 0.1 Da at 400Da

Definition at line 106 of file masscomparefunctors.hpp.

Member Function Documentation

§ operator()() [1/2]

template<typename TReal >
value_type ralab::base::resample::FTMSCompFunctor< TReal >::operator() ( value_type  val)
inline

brief returns size of windows for this mass

Definition at line 112 of file masscomparefunctors.hpp.

113  {
114  value_type pR = (val*invR_);
115  return( pR*pR );
116  }

§ operator()() [2/2]

template<typename TReal >
bool ralab::base::resample::FTMSCompFunctor< TReal >::operator() ( value_type  pval,
value_type  cval 
)
inline

brief compares two masses, returns true if they match false otherwise

Definition at line 118 of file masscomparefunctors.hpp.

119  {
120  return( std::abs( pval - cval ) < operator()(pval) );
121  }

Member Data Documentation

§ window_

template<typename TReal >
value_type ralab::base::resample::FTMSCompFunctor< TReal >::window_

Definition at line 100 of file masscomparefunctors.hpp.

§ mass_

template<typename TReal >
value_type ralab::base::resample::FTMSCompFunctor< TReal >::mass_

Definition at line 102 of file masscomparefunctors.hpp.

§ invR_

template<typename TReal >
value_type ralab::base::resample::FTMSCompFunctor< TReal >::invR_

Definition at line 103 of file masscomparefunctors.hpp.


The documentation for this struct was generated from the following file: