OpenMS  2.8.0
Public Member Functions | Protected Attributes | List of all members
InclusionExclusionList::WindowDistance_ Class Reference

Determine distance between two spectra. More...

#include <OpenMS/ANALYSIS/TARGETED/InclusionExclusionList.h>

Collaboration diagram for InclusionExclusionList::WindowDistance_:
[legend]

Public Member Functions

 WindowDistance_ (const double rt_bridge, const double mz_max, const bool mz_as_ppm)
 
double operator() (const IEWindow &first, const IEWindow &second) const
 

Protected Attributes

double rt_bridge_
 max rt distance between two windows in order to be considered overlapping More...
 
double mz_max_
 max m/z distance between two ... More...
 
bool mz_as_ppm_
 m/z distance unit More...
 

Detailed Description

Determine distance between two spectra.

Distance is determined as

(d_rt/rt_max_ + d_mz/mz_max_) / 2

Constructor & Destructor Documentation

◆ WindowDistance_()

WindowDistance_ ( const double  rt_bridge,
const double  mz_max,
const bool  mz_as_ppm 
)
inline

Member Function Documentation

◆ operator()()

double operator() ( const IEWindow first,
const IEWindow second 
) const
inline

Member Data Documentation

◆ mz_as_ppm_

bool mz_as_ppm_
protected

m/z distance unit

◆ mz_max_

double mz_max_
protected

max m/z distance between two ...

◆ rt_bridge_

double rt_bridge_
protected

max rt distance between two windows in order to be considered overlapping