39 #include "../../precision.h"
40 #include "../filters/savgolfilter.h"
41 #include "../../massspectrum/massspectrum.h"
97 bool removeZeroValDataPoints);
117 void setDecimalPlaces(
int decimal_places);
118 int getDecimalPlaces()
const;
123 void setApplyMzShift(
bool applyMzShift);
124 bool isApplyMzShift()
const;
126 void setMzShift(
double value);
127 double getMzShift()
const;
129 void setRemoveZeroValDataPoints(
bool removeOrNot =
true);
130 bool isRemoveZeroValDataPoints()
const;
132 void setApplySavGolFilter(
bool applySavGolFilter);
133 bool isApplySavGolFilter()
const;
135 void setSavGolParams(
int nL = 15,
139 bool convolveWithNr =
false);
145 bool isValid()
const;
147 bool hasValidMzRange()
const;
149 std::vector<pappso::pappso_double> createBins();
150 std::vector<pappso::pappso_double>
153 QString toString(
int offset = 0,
const QString &spacer = QString())
const;
166 int m_decimalPlaces = -1;
172 bool m_applyMzShift =
false;
174 bool m_removeZeroValDataPoints =
true;
176 bool m_applySavGolFilter =
false;
179 std::vector<double> createArbitraryBins();
The MzIntegrationParams class provides the parameters definining how m/z !
pappso::SavGolParams m_savGolParams
static PrecisionPtr getDaltonInstance(pappso_double value)
get a Dalton precision pointer
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
BinningType
Type of binning when performing integrations to a mass spectrum.
@ DATA_BASED
binning based on mass spectral data
@ ARBITRARY
binning based on arbitrary bin size value
double pappso_double
A type definition for doubles.
std::shared_ptr< const MassSpectrum > MassSpectrumCstSPtr
std::map< BinningType, QString > binningTypeMap
Map relating the BinningType to a textual representation.
Parameters for the Savitzky-Golay filter.