| OpenMS 2.5.0

Public Member Functions | Protected Attributes | List of all members
InIntensityRange< PeakType > Class Template Reference
Kernel » RangeUtils

Predicate that determines if a peak lies inside/outside a specific intensity range. More...

`#include <OpenMS/KERNEL/RangeUtils.h>`

Inheritance diagram for InIntensityRange< PeakType >:

## Public Member Functions

| InIntensityRange (double min, double max, bool reverse=false)
| Constructor. More...
bool | operator() (const PeakType &p) const

## Protected Attributes

double | min_
double | max_
bool | reverse_

## Detailed Description

### template<class PeakType>
class OpenMS::InIntensityRange< PeakType >

Predicate that determines if a peak lies inside/outside a specific intensity range.

PeakType must have a getIntensity() method.

## Constructor & Destructor Documentation

## ◆ InIntensityRange()

InIntensityRange | ( | double | min,
|  | double | max,
|  | bool | reverse = `false`
| ) |  |

inline

Constructor.

Parameters

  min | lower boundary
  max | upper boundary
  reverse | if `reverse` is true, operator() returns true if the peak lies outside the set

## Member Function Documentation

## ◆ operator()()

bool operator() | ( | const PeakType & | p | ) | const

inline

References Peak2D::getIntensity(), InIntensityRange< PeakType >::max_, InIntensityRange< PeakType >::min_, and InIntensityRange< PeakType >::reverse_.

## Member Data Documentation

## ◆ max_

double max_

protected

Referenced by InIntensityRange< PeakType >::operator()().

## ◆ min_

double min_

protected

Referenced by InIntensityRange< PeakType >::operator()().

## ◆ reverse_

bool reverse_

protected

Referenced by InIntensityRange< PeakType >::operator()().