| OpenMS 2.5.0

Public Member Functions | Public Attributes | List of all members
PenaltyFactors Struct Reference

Class for the penalty factors used during the optimization. More...

`#include <OpenMS/TRANSFORMATIONS/RAW2PEAK/OptimizePick.h>`

Inheritance diagram for PenaltyFactors:

## Public Member Functions

| PenaltyFactors ()
| PenaltyFactors (const PenaltyFactors &p)
PenaltyFactors & | operator= (const PenaltyFactors &p)
| ~PenaltyFactors ()

## Public Attributes

double | pos
| Penalty factor for the peak shape's position. More...
double | lWidth
| Penalty factor for the peak shape's left width parameter. More...
double | rWidth
| Penalty factor for the peak shape's right width parameter. More...

## Detailed Description

Class for the penalty factors used during the optimization.

A great deviation (squared deviation) of a peak shape's position or its left or right width parameter can be penalised. In each iteration the penalty (for each peak shape) is computed by: penalty = penalty_pos * pow(p_position - old_position, 2) + penalty_lwidth * pow(p_width_l - old_width_l, 2) + penalty_rwidth * pow(p_width_r - old_width_r, 2);

## Constructor & Destructor Documentation

## ◆ PenaltyFactors() [1/2]

PenaltyFactors | ( |  | ) |

inline

## ◆ PenaltyFactors() [2/2]

PenaltyFactors | ( | const PenaltyFactors & | p | ) |

inline

## ◆ ~PenaltyFactors()

~PenaltyFactors | ( |  | ) |

inline

## Member Function Documentation

## ◆ operator=()

PenaltyFactors& operator= | ( | const PenaltyFactors & | p | ) |

inline

References PenaltyFactors::lWidth, PenaltyFactors::pos, and PenaltyFactors::rWidth.

## Member Data Documentation

## ◆ lWidth

double lWidth

Penalty factor for the peak shape's left width parameter.

Referenced by PenaltyFactorsIntensity::operator=(), PenaltyFactors::operator=(), TwoDOptimization::optimizeRegionsScanwise_(), and TwoDOptimization::setPenalties().

## ◆ pos

double pos

Penalty factor for the peak shape's position.

Referenced by PenaltyFactorsIntensity::operator=(), PenaltyFactors::operator=(), TwoDOptimization::optimizeRegionsScanwise_(), and TwoDOptimization::setPenalties().

## ◆ rWidth

double rWidth

Penalty factor for the peak shape's right width parameter.

Referenced by PenaltyFactorsIntensity::operator=(), PenaltyFactors::operator=(), TwoDOptimization::optimizeRegionsScanwise_(), and TwoDOptimization::setPenalties().