#include <filterpeakdelta.h>
Definition at line 37 of file filterpeakdelta.h.
◆ FilterPeakDelta() [1/2]
FilterPeakDelta::FilterPeakDelta |
( |
| ) |
|
◆ FilterPeakDelta() [2/2]
◆ ~FilterPeakDelta()
FilterPeakDelta::~FilterPeakDelta |
( |
| ) |
|
|
virtual |
◆ filter()
Implements pappso::FilterInterface.
Definition at line 46 of file filterpeakdelta.cpp.
47{
48
49 Trace old_trace(data_points);
50
51 data_points.clear();
52
53 auto it_out = old_trace.begin();
54 auto it_in = it_out + 1;
55 auto it_end = old_trace.end();
56
57 while(it_out != it_end)
58 {
59 while(it_in != it_end)
60 {
61 double intensity =
62 (it_out->y + it_in->y) - (std::abs(it_out->y - it_in->y));
63 data_points.push_back(
64 DataPoint(std::abs(it_out->x - it_in->x), intensity));
65 it_in++;
66 }
67 it_out++;
68 it_in = it_out + 1;
69 }
71 return data_points;
72}
A simple container of DataPoint instances.
void sortX(SortOrder sort_order=SortOrder::ascending)
References pappso::Trace::sortX().
The documentation for this class was generated from the following files: