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.

56  :window_(window),ppm_(1e-6)
57  {}

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.

61  {
62  return((window_ * val)*ppm_);
63  }

References ralab::base::resample::PPMCompFunctor< TReal >::ppm_, and ralab::base::resample::PPMCompFunctor< TReal >::window_.

◆ 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_

◆ ppm_

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

The documentation for this struct was generated from the following file:
ralab::base::resample::PPMCompFunctor::window_
value_type window_
Definition: masscomparefunctors.hpp:52
ralab::base::resample::PPMCompFunctor::ppm_
value_type ppm_
Definition: masscomparefunctors.hpp:53