libpappsomspp
Library for mass spectrometry
|
Redefines the ceiling intensity of the Trace. More...
#include <filterceilingamplitudepercentage.h>
Public Member Functions | |
FilterCeilingAmplitudePercentage (double percentage) | |
FilterCeilingAmplitudePercentage (const QString ¶meters) | |
FilterCeilingAmplitudePercentage (const FilterCeilingAmplitudePercentage &other) | |
virtual | ~FilterCeilingAmplitudePercentage () |
FilterCeilingAmplitudePercentage & | operator= (const FilterCeilingAmplitudePercentage &other) |
Trace & | filter (Trace &data_points) const override |
double | getPercentage () const |
QString | name () const override |
QString | toString () const override |
Return a string with the textual representation of the configuration data. More... | |
![]() | |
virtual | ~FilterNameInterface () |
![]() | |
virtual | ~FilterInterface () |
Protected Member Functions | |
void | buildFilterFromString (const QString &strBuildParams) override |
build this filter using a string More... | |
Private Attributes | |
double | m_percentage |
Redefines the ceiling intensity of the Trace.
The amplitude of the trace is computed (maxValue - minValue) Its fraction is calculated = amplitude * (percentage / 100) The threshold value is computed as (minValue + fraction)
When the values to be filtered are above that threshold they acquire that threshold value.
When the values to be filtered are below that threshold they remain unchanged.
This effectively re-ceilings the values to threshold.
Definition at line 69 of file filterceilingamplitudepercentage.h.
pappso::FilterCeilingAmplitudePercentage::FilterCeilingAmplitudePercentage | ( | double | percentage | ) |
Definition at line 49 of file filterceilingamplitudepercentage.cpp.
References m_percentage.
pappso::FilterCeilingAmplitudePercentage::FilterCeilingAmplitudePercentage | ( | const QString & | parameters | ) |
Definition at line 80 of file filterceilingamplitudepercentage.cpp.
References buildFilterFromString().
pappso::FilterCeilingAmplitudePercentage::FilterCeilingAmplitudePercentage | ( | const FilterCeilingAmplitudePercentage & | other | ) |
Definition at line 56 of file filterceilingamplitudepercentage.cpp.
References m_percentage.
|
virtual |
Definition at line 63 of file filterceilingamplitudepercentage.cpp.
|
overrideprotectedvirtual |
build this filter using a string
strBuildParams | a string coding the filter and its parameters "filterName|param1;param2;param3" |
Implements pappso::FilterNameInterface.
Definition at line 88 of file filterceilingamplitudepercentage.cpp.
References m_percentage, and name().
Referenced by FilterCeilingAmplitudePercentage().
|
overridevirtual |
Implements pappso::FilterInterface.
Definition at line 108 of file filterceilingamplitudepercentage.cpp.
References m_percentage, pappso::max, pappso::maxYDataPoint(), and pappso::minYDataPoint().
double pappso::FilterCeilingAmplitudePercentage::getPercentage | ( | ) | const |
Definition at line 143 of file filterceilingamplitudepercentage.cpp.
References m_percentage.
|
overridevirtual |
Implements pappso::FilterNameInterface.
Definition at line 159 of file filterceilingamplitudepercentage.cpp.
Referenced by buildFilterFromString(), and toString().
FilterCeilingAmplitudePercentage & pappso::FilterCeilingAmplitudePercentage::operator= | ( | const FilterCeilingAmplitudePercentage & | other | ) |
|
overridevirtual |
Return a string with the textual representation of the configuration data.
Implements pappso::FilterNameInterface.
Definition at line 151 of file filterceilingamplitudepercentage.cpp.
References m_percentage, and name().
|
private |
Definition at line 91 of file filterceilingamplitudepercentage.h.
Referenced by FilterCeilingAmplitudePercentage(), buildFilterFromString(), filter(), getPercentage(), operator=(), and toString().