libpappsomspp
Library for mass spectrometry
|
#include <tracedetectionzivy.h>
Public Member Functions | |
TraceDetectionZivy (unsigned int smoothing_half_window_length, unsigned int minmax_half_window_length, unsigned int maxmin_half_window_length, pappso_double detection_threshold_on_minmax, pappso_double detection_threshold_on_maxmin) | |
virtual | ~TraceDetectionZivy () |
void | setFilterMorphoMean (const FilterMorphoMean &smooth) |
void | setFilterMorphoMinMax (const FilterMorphoMinMax &m_minMax) |
void | setFilterMorphoMaxMin (const FilterMorphoMaxMin &maxMin) |
void | setDetectionThresholdOnMinmax (double detectionThresholdOnMinMax) |
void | setDetectionThresholdOnMaxmin (double detectionThresholdOnMaxMin) |
unsigned int | getSmoothingHalfEdgeWindows () const |
unsigned int | getMaxMinHalfEdgeWindows () const |
unsigned int | getMinMaxHalfEdgeWindows () const |
pappso_double | getDetectionThresholdOnMinmax () const |
pappso_double | getDetectionThresholdOnMaxmin () const |
void | detect (const Trace &xic, TraceDetectionSinkInterface &sink, bool remove_peak_base) const override |
detect peaks on a trace More... | |
Private Attributes | |
FilterMorphoMean | m_smooth |
FilterMorphoMinMax | m_minMax |
FilterMorphoMaxMin | m_maxMin |
pappso_double | m_detectionThresholdOnMinMax |
pappso_double | m_detectionThresholdOnMaxMin |
Definition at line 36 of file tracedetectionzivy.h.
pappso::TraceDetectionZivy::TraceDetectionZivy | ( | unsigned int | smoothing_half_window_length, |
unsigned int | minmax_half_window_length, | ||
unsigned int | maxmin_half_window_length, | ||
pappso_double | detection_threshold_on_minmax, | ||
pappso_double | detection_threshold_on_maxmin | ||
) |
Definition at line 35 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMaxMin, and m_detectionThresholdOnMinMax.
|
virtual |
Definition at line 48 of file tracedetectionzivy.cpp.
|
overridevirtual |
detect peaks on a trace
trace | the trace to detect peaks on |
sink | the object to store peaks or stream it |
remove_peak_base | if true, removes the area under the base of the peak |
Implements pappso::TraceDetectionInterface.
Definition at line 109 of file tracedetectionzivy.cpp.
References pappso::FilterMorphoWindowBase::filter(), pappso::FilterMorphoMinMax::filter(), pappso::FilterMorphoMaxMin::filter(), pappso::findFirstEqualOrGreaterX(), pappso::FilterMorphoMaxMin::getMaxMinHalfEdgeWindows(), pappso::FilterMorphoMean::getMeanHalfEdgeWindows(), pappso::FilterMorphoMinMax::getMinMaxHalfEdgeWindows(), m_detectionThresholdOnMaxMin, m_detectionThresholdOnMinMax, m_maxMin, m_minMax, m_smooth, pappso::moveLowerYLeftDataPoint(), pappso::moveLowerYRigthDataPoint(), pappso::PappsoException::qwhat(), and pappso::TraceDetectionSinkInterface::setTracePeak().
pappso_double pappso::TraceDetectionZivy::getDetectionThresholdOnMaxmin | ( | ) | const |
Definition at line 102 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMaxMin.
pappso_double pappso::TraceDetectionZivy::getDetectionThresholdOnMinmax | ( | ) | const |
Definition at line 97 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMinMax.
unsigned int pappso::TraceDetectionZivy::getMaxMinHalfEdgeWindows | ( | ) | const |
Definition at line 86 of file tracedetectionzivy.cpp.
References pappso::FilterMorphoMaxMin::getMaxMinHalfEdgeWindows(), and m_maxMin.
unsigned int pappso::TraceDetectionZivy::getMinMaxHalfEdgeWindows | ( | ) | const |
Definition at line 92 of file tracedetectionzivy.cpp.
References pappso::FilterMorphoMinMax::getMinMaxHalfEdgeWindows(), and m_minMax.
unsigned int pappso::TraceDetectionZivy::getSmoothingHalfEdgeWindows | ( | ) | const |
Definition at line 81 of file tracedetectionzivy.cpp.
References pappso::FilterMorphoMean::getMeanHalfEdgeWindows(), and m_smooth.
void pappso::TraceDetectionZivy::setDetectionThresholdOnMaxmin | ( | double | detectionThresholdOnMaxMin | ) |
Definition at line 75 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMaxMin.
void pappso::TraceDetectionZivy::setDetectionThresholdOnMinmax | ( | double | detectionThresholdOnMinMax | ) |
Definition at line 69 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMinMax.
void pappso::TraceDetectionZivy::setFilterMorphoMaxMin | ( | const FilterMorphoMaxMin & | maxMin | ) |
Definition at line 63 of file tracedetectionzivy.cpp.
References m_maxMin.
void pappso::TraceDetectionZivy::setFilterMorphoMean | ( | const FilterMorphoMean & | smooth | ) |
Definition at line 53 of file tracedetectionzivy.cpp.
References m_smooth.
void pappso::TraceDetectionZivy::setFilterMorphoMinMax | ( | const FilterMorphoMinMax & | m_minMax | ) |
Definition at line 58 of file tracedetectionzivy.cpp.
References m_minMax.
|
private |
Definition at line 71 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), detect(), getDetectionThresholdOnMaxmin(), and setDetectionThresholdOnMaxmin().
|
private |
Definition at line 70 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), detect(), getDetectionThresholdOnMinmax(), and setDetectionThresholdOnMinmax().
|
private |
Definition at line 69 of file tracedetectionzivy.h.
Referenced by detect(), getMaxMinHalfEdgeWindows(), and setFilterMorphoMaxMin().
|
private |
Definition at line 68 of file tracedetectionzivy.h.
Referenced by detect(), getMinMaxHalfEdgeWindows(), and setFilterMorphoMinMax().
|
private |
Definition at line 67 of file tracedetectionzivy.h.
Referenced by detect(), getSmoothingHalfEdgeWindows(), and setFilterMorphoMean().