OpenMS
ValueTrait Struct Reference

Trait for MatchedIterator to find pairs with a certain distance, which is computed directly on the value_type of the container. More...

#include <OpenMS/DATASTRUCTURES/MatchedIterator.h>

Static Public Member Functions

template<typename T >
static float allowedTol (float tol, const T &)
 
template<typename T >
static T getDiffAbsolute (const T &elem_ref, const T &elem_tgt)
 just use fabs on the value directly More...
 

Detailed Description

Trait for MatchedIterator to find pairs with a certain distance, which is computed directly on the value_type of the container.

Member Function Documentation

◆ allowedTol()

static float allowedTol ( float  tol,
const T &   
)
inlinestatic

◆ getDiffAbsolute()

static T getDiffAbsolute ( const T &  elem_ref,
const T &  elem_tgt 
)
inlinestatic

just use fabs on the value directly