95 bool removeZeroValDataPoints);
111 Q_INVOKABLE
void setBinningType(
BinningType binningType);
114 Q_INVOKABLE
void setDecimalPlaces(
int decimal_places);
115 Q_INVOKABLE
int getDecimalPlaces()
const;
120 void setBinSizeDivisor(
int divisor);
121 int getBinSizeDivisor()
const;
123 Q_INVOKABLE
void setRemoveZeroValDataPoints(
bool removeOrNot =
true);
124 Q_INVOKABLE
bool isRemoveZeroValDataPoints()
const;
126 Q_INVOKABLE
void reset();
128 Q_INVOKABLE
bool isValid()
const;
130 Q_INVOKABLE
bool hasValidMzRange()
const;
132 Q_INVOKABLE std::vector<pappso::pappso_double> createBins();
133 Q_INVOKABLE std::vector<pappso::pappso_double>
136 Q_INVOKABLE QString toString(
int offset = 0,
137 const QString &spacer = QString())
const;
152 int m_decimalPlaces = -1;
159 int m_binSizeDivisor = 1;
161 bool m_removeZeroValDataPoints =
true;
163 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.