87 bool remove_peak_base)
const
90 Trace xic_smoothed(xic);
96 unsigned int nb_tic_start(0);
98 std::vector<DataPoint>::const_iterator it_smoothed;
99 std::vector<DataPoint>::const_iterator it, it_begin;
103 for(it_smoothed = xic_smoothed.begin(), it = xic.begin(); it_smoothed != xic_smoothed.end();
107 if((nb_tic_start == 0) && (it_begin != xic.end()) && (banked ==
false))
111 it_begin = xic.end();
117 if(it_begin == xic.end())
124 if((nb_tic_start == 2) && (banked ==
false))
135 if(it_begin != xic.end())
140 TracePeak peak(it_begin, it + 1, remove_peak_base);
mean filter apply mean of y values inside the window : this results in a kind of smoothing
void setTicStart(double tic_start)
virtual ~TraceDetectionMoulon()
pappso_double getTicStart() const
void detect(const Trace &xic, TraceDetectionSinkInterface &sink, bool remove_peak_base) const override
detect peaks on a trace
FilterMorphoMean m_xicFilterSmoothing
void setFilterMorphoMean(const FilterMorphoMean &smooth)
unsigned int getSmoothingHalfEdgeWindows() const
pappso_double getTicStop() const
TraceDetectionMoulon(unsigned int smoothing_half_window_length, pappso_double tic_start, pappso_double tic_stop)
void setTicStop(double tic_stop)
virtual void setTracePeak(TracePeak &xic_peak)=0
A simple container of DataPoint instances.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
double pappso_double
A type definition for doubles.