39#include "../../precision.h"
40#include "../../massspectrum/massspectrum.h"
94 FROM_SETTINGS_BIN_SIZE_MODEL_PARTIAL = 1,
95 FROM_SETTINGS_BIN_SIZE_MODEL_FULL = 2,
96 FROM_SETTINGS_FULL = 3
107 bool removeZeroValDataPoints);
113 InitializationResult initialize(
const QString &text);
125 Q_INVOKABLE
void setBinningType(
BinningType binningType);
128 Q_INVOKABLE
void setDecimalPlaces(
int decimal_places);
129 Q_INVOKABLE
int getDecimalPlaces()
const;
134 void setBinSizeDivisor(
int divisor);
135 int getBinSizeDivisor()
const;
137 Q_INVOKABLE
void setRemoveZeroValDataPoints(
bool removeOrNot =
true);
138 Q_INVOKABLE
bool isRemoveZeroValDataPoints()
const;
140 Q_INVOKABLE
void reset();
142 Q_INVOKABLE
bool isValid()
const;
144 Q_INVOKABLE
bool hasValidMzRange()
const;
146 Q_INVOKABLE std::vector<pappso::pappso_double> createBins();
147 Q_INVOKABLE std::vector<pappso::pappso_double>
150 Q_INVOKABLE QString toString(
int offset,
const QString &spacer =
" ")
const;
152 Q_INVOKABLE QString toString()
const;
167 int m_decimalPlaces = -1;
174 int m_binSizeDivisor = 1;
176 bool m_removeZeroValDataPoints =
true;
178 std::vector<double> createArbitraryBins();
The MzIntegrationParams class provides the parameters definining how m/z !
static PrecisionPtr getResInstance(pappso_double value)
get a resolution 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 getBinningTypeFromString(const QString &text)
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.