39 #include "../../precision.h"
40 #include "../../massspectrum/massspectrum.h"
96 bool removeZeroValDataPoints);
112 Q_INVOKABLE
void setBinningType(
BinningType binningType);
115 Q_INVOKABLE
void setDecimalPlaces(
int decimal_places);
116 Q_INVOKABLE
int getDecimalPlaces()
const;
121 Q_INVOKABLE
void setApplyMzShift(
bool applyMzShift);
122 Q_INVOKABLE
bool isApplyMzShift()
const;
124 Q_INVOKABLE
void setMzShift(
double value);
125 Q_INVOKABLE
double getMzShift()
const;
127 Q_INVOKABLE
void setRemoveZeroValDataPoints(
bool removeOrNot =
true);
128 Q_INVOKABLE
bool isRemoveZeroValDataPoints()
const;
130 Q_INVOKABLE
void reset();
132 Q_INVOKABLE
bool isValid()
const;
134 Q_INVOKABLE
bool hasValidMzRange()
const;
136 Q_INVOKABLE std::vector<pappso::pappso_double> createBins();
137 Q_INVOKABLE std::vector<pappso::pappso_double>
140 Q_INVOKABLE QString toString(
int offset = 0,
141 const QString &spacer = QString())
const;
154 int m_decimalPlaces = -1;
160 bool m_applyMzShift =
false;
162 bool m_removeZeroValDataPoints =
true;
164 std::vector<double> createArbitraryBins();
The MzIntegrationParams class provides the parameters definining how m/z !
static PrecisionPtr getDaltonInstance(pappso_double value)
get a Dalton precision pointer
int mzIntegrationParamsMetaTypeId
Q_DECLARE_METATYPE(pappso::MzIntegrationParams)
int mzIntegrationParamsPtrMetaTypeId
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.