36 int decimalPlaces = -1,
37 QObject *parent_p =
nullptr);
39 QObject *parent_p =
nullptr);
41 QObject *parent_p =
nullptr);
43 QObject *parent_p =
nullptr);
47 Q_INVOKABLE
void setBins(std::vector<pappso_double> bins);
48 Q_INVOKABLE
const std::vector<pappso_double> &
getBins()
const;
49 Q_INVOKABLE std::size_t
binCount()
const;
MassDataCombinerInterface(int decimal_places=-1)
MassSpectrumCombiner(QObject *parent_p=nullptr)
Construct an uninitialized instance.
std::vector< pappso_double > m_bins
Q_INVOKABLE void setBins(std::vector< pappso_double > bins)
Q_INVOKABLE std::size_t binCount() const
Q_INVOKABLE const std::vector< pappso_double > & getBins() const
static void registerJsConstructor(QJSEngine *engine)
Q_INVOKABLE QString binsAsString() const
std::vector< pappso_double >::iterator findBin(pappso_double mz)
Find the bin that will contain mz.
MassSpectrumCombiner(const MassSpectrumCombiner &&other, QObject *parent_p=nullptr)
#define PAPPSO_REGISTER_JS_CLASS(NS_IDENT, CLASS_NAME)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< MassSpectrumCombiner > MassSpectrumCombinerSPtr
double pappso_double
A type definition for doubles.
std::shared_ptr< const MassSpectrumCombiner > MassSpectrumCombinerCstSPtr