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

TODO Do checking on TReal thats a real. More...

#include <masscomparefunctors.hpp>

Public Types

typedef TReal value_type
 

Public Member Functions

 PPMCompFunctor (value_type window)
 
value_type operator() (value_type val)
 returns 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_
 
value_type ppm_
 

Detailed Description

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

TODO Do checking on TReal thats a real.

Definition at line 49 of file masscomparefunctors.hpp.

Member Typedef Documentation

§ value_type

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

Definition at line 51 of file masscomparefunctors.hpp.

Constructor & Destructor Documentation

§ PPMCompFunctor()

template<typename TReal>
ralab::base::resample::PPMCompFunctor< TReal >::PPMCompFunctor ( value_type  window)
inline
Parameters
windowin ppm

Definition at line 55 of file masscomparefunctors.hpp.

Member Function Documentation

§ operator()() [1/2]

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

returns window at mass

Definition at line 60 of file masscomparefunctors.hpp.

§ operator()() [2/2]

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

if dist pval cval smaller then window returns true

Definition at line 66 of file masscomparefunctors.hpp.

67  {
68  return( std::abs(pval - cval) < operator()(pval) );
69  }

Member Data Documentation

§ window_

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

Definition at line 52 of file masscomparefunctors.hpp.

§ ppm_

template<typename TReal>
value_type ralab::base::resample::PPMCompFunctor< TReal >::ppm_

Definition at line 53 of file masscomparefunctors.hpp.


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