29 unsigned int smoothing_half_window_length,
32 : m_xicFilterSmoothing(smoothing_half_window_length)
39 : m_xicFilterSmoothing(other.m_xicFilterSmoothing)
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();
104 it_smoothed != xic_smoothed.end();
108 if((nb_tic_start == 0) && (it_begin != xic.end()) && (banked ==
false))
112 it_begin = xic.end();
118 if(it_begin == xic.end())
125 if((nb_tic_start == 2) && (banked ==
false))
136 if(it_begin != xic.end())
mean filter apply mean of y values inside the window : this results in a kind of smoothing
std::size_t getMeanHalfEdgeWindows() const
virtual Trace & filter(Trace &data_points) const override
void setTicStart(double tic_start)
void detect(const Trace &xic, TraceDetectionSinkInterface &sink) const override
virtual ~TraceDetectionMoulon()
pappso_double getTicStart() const
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.