29 #include "../exception/exceptionoutofrange.h"
37 qDebug() <<
"Xic::Xic begin";
38 qDebug() <<
"Xic::Xic end";
49 return std::make_shared<const Xic>(*
this);
55 return std::make_shared<Xic>(*
this);
61 for(
auto &&peak : *
this)
63 qDebug() <<
"rt = " << peak.x <<
", int = " << peak.y;
70 for(
auto &&peak : *
this)
76 QObject::tr(
"no intensity for this retention time"));
82 if(rt_first > rt_second)
84 std::swap(rt_first, rt_second);
86 unsigned int distance = 0;
87 auto it = this->begin();
88 auto itend = this->end();
90 while((it->x < rt_first) && (it != itend))
94 while((rt_second > it->x) && (it != itend))
96 qDebug() <<
"Xic::getMsPointDistance " << rt_first <<
" it->rt " << it->x
97 <<
" rt_second " << rt_second << distance;
const DataPoint & atRetentionTime(pappso_double rt) const
get the DataPoint at the given retention time
void sortByRetentionTime()
sort peaks by retention time
XicCstSPtr makeXicCstSPtr() const
void debugPrintValues() const
unsigned int getMsPointDistance(pappso_double rt, pappso_double rt_other) const
get the number of MS measurement between 2 retention times on this xic
XicSPtr makeXicSPtr() const
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< const Xic > XicCstSPtr
double pappso_double
A type definition for doubles.
std::shared_ptr< Xic > XicSPtr