libpappsomspp
Library for mass spectrometry
pappso::TraceDetectionMoulon Class Reference

#include <tracedetectionmoulon.h>

Inheritance diagram for pappso::TraceDetectionMoulon:
pappso::TraceDetectionInterface

Public Member Functions

 TraceDetectionMoulon (unsigned int smoothing_half_window_length, pappso_double tic_start, pappso_double tic_stop)
 
 TraceDetectionMoulon (const TraceDetectionMoulon &other)
 
virtual ~TraceDetectionMoulon ()
 
void setFilterMorphoMean (const FilterMorphoMean &smooth)
 
void setTicStart (double tic_start)
 
void setTicStop (double tic_stop)
 
unsigned int getSmoothingHalfEdgeWindows () const
 
pappso_double getTicStart () const
 
pappso_double getTicStop () const
 
void detect (const Trace &xic, TraceDetectionSinkInterface &sink) const override
 

Private Attributes

FilterMorphoMean m_xicFilterSmoothing
 
pappso_double m_ticStart
 
pappso_double m_ticStop
 

Detailed Description

Definition at line 55 of file tracedetectionmoulon.h.

Constructor & Destructor Documentation

◆ TraceDetectionMoulon() [1/2]

pappso::TraceDetectionMoulon::TraceDetectionMoulon ( unsigned int  smoothing_half_window_length,
pappso_double  tic_start,
pappso_double  tic_stop 
)

Definition at line 49 of file tracedetectionmoulon.cpp.

52 {
53  m_xicFilterSmoothing = smooth;
54 }
55 
56 void
57 TraceDetectionMoulon::setTicStart(double tic_start)

References m_xicFilterSmoothing.

◆ TraceDetectionMoulon() [2/2]

pappso::TraceDetectionMoulon::TraceDetectionMoulon ( const TraceDetectionMoulon other)

Definition at line 59 of file tracedetectionmoulon.cpp.

63 {
64  m_ticStop = tic_stop;

◆ ~TraceDetectionMoulon()

pappso::TraceDetectionMoulon::~TraceDetectionMoulon ( )
virtual

Member Function Documentation

◆ detect()

void pappso::TraceDetectionMoulon::detect ( const Trace xic,
TraceDetectionSinkInterface sink 
) const
overridevirtual

Implements pappso::TraceDetectionInterface.

Definition at line 107 of file tracedetectionmoulon.cpp.

109  {
110  // delete(p_current_peak);
111  // p_current_peak = nullptr;
112  it_begin = xic.end();
113  }
114 
115  if(it_smoothed->y >= m_ticStart)
116  {
117  nb_tic_start++;
118  if(it_begin == xic.end())
119  {
120  // p_current_peak = new TracePeak;
121  // p_current_peak->setLeftBoundary(*it_smoothed);
122  it_begin = it;
123  banked = false;
124  }
125  if((nb_tic_start == 2) && (banked == false))
126  {
127  banked = true;
128  }
129  }
130  else
131  {
132  nb_tic_start = 0;
133  }
134  if(it_smoothed->y <= m_ticStop)
135  {
136  if(it_begin != xic.end())
137  {
138 
139  if(banked)
140  {
141  TracePeak peak(it_begin, it + 1);
142  sink.setTracePeak(peak);
143  }
144  banked = false;
145  }
146  }
147  }
148 }
149 } // namespace pappso

◆ getSmoothingHalfEdgeWindows()

unsigned int pappso::TraceDetectionMoulon::getSmoothingHalfEdgeWindows ( ) const

Definition at line 89 of file tracedetectionmoulon.cpp.

◆ getTicStart()

pappso_double pappso::TraceDetectionMoulon::getTicStart ( ) const

Definition at line 95 of file tracedetectionmoulon.cpp.

◆ getTicStop()

pappso_double pappso::TraceDetectionMoulon::getTicStop ( ) const

Definition at line 101 of file tracedetectionmoulon.cpp.

106  {

◆ setFilterMorphoMean()

void pappso::TraceDetectionMoulon::setFilterMorphoMean ( const FilterMorphoMean smooth)

Definition at line 72 of file tracedetectionmoulon.cpp.

75 {

References m_ticStart.

◆ setTicStart()

void pappso::TraceDetectionMoulon::setTicStart ( double  tic_start)

Definition at line 78 of file tracedetectionmoulon.cpp.

81 {

References m_ticStop.

◆ setTicStop()

void pappso::TraceDetectionMoulon::setTicStop ( double  tic_stop)

Definition at line 83 of file tracedetectionmoulon.cpp.

88 {

Member Data Documentation

◆ m_ticStart

pappso_double pappso::TraceDetectionMoulon::m_ticStart
private

Definition at line 80 of file tracedetectionmoulon.h.

Referenced by setFilterMorphoMean().

◆ m_ticStop

pappso_double pappso::TraceDetectionMoulon::m_ticStop
private

Definition at line 81 of file tracedetectionmoulon.h.

Referenced by setTicStart().

◆ m_xicFilterSmoothing

FilterMorphoMean pappso::TraceDetectionMoulon::m_xicFilterSmoothing
private

Definition at line 79 of file tracedetectionmoulon.h.

Referenced by TraceDetectionMoulon(), and ~TraceDetectionMoulon().


The documentation for this class was generated from the following files:
pappso::TraceDetectionMoulon::setTicStart
void setTicStart(double tic_start)
Definition: tracedetectionmoulon.cpp:78
pappso::TraceDetectionMoulon::m_xicFilterSmoothing
FilterMorphoMean m_xicFilterSmoothing
Definition: tracedetectionmoulon.h:79
pappso::TraceDetectionMoulon::m_ticStart
pappso_double m_ticStart
Definition: tracedetectionmoulon.h:80
pappso::TraceDetectionMoulon::m_ticStop
pappso_double m_ticStop
Definition: tracedetectionmoulon.h:81