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

Da Comparator - constant mass error. More...

#include <masscomparefunctors.hpp>

Public Types

typedef TReal value_type
 

Public Member Functions

 DaCompFunctor (value_type window)
 
value_type operator() (value_type)
 window at mass More...
 
bool operator() (value_type pval, value_type cval)
 if dist pval cval smaller then window returns true More...
 

Public Attributes

value_type window_
 

Detailed Description

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

Da Comparator - constant mass error.

Definition at line 74 of file masscomparefunctors.hpp.

Member Typedef Documentation

§ value_type

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

Definition at line 76 of file masscomparefunctors.hpp.

Constructor & Destructor Documentation

§ DaCompFunctor()

template<typename TReal >
ralab::base::resample::DaCompFunctor< TReal >::DaCompFunctor ( value_type  window)
inline

Definition at line 78 of file masscomparefunctors.hpp.

78  : window_(window)
79  {
80  }

Member Function Documentation

§ operator()() [1/2]

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

window at mass

Definition at line 83 of file masscomparefunctors.hpp.

84  {
85  return( window_ );
86  }

§ operator()() [2/2]

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

if dist pval cval smaller then window returns true

Definition at line 89 of file masscomparefunctors.hpp.

90  {
91  return( std::abs(pval - cval) < operator()(pval) );
92  }

Member Data Documentation

§ window_

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

Definition at line 77 of file masscomparefunctors.hpp.


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