plotjuggler_app
transforms
outlier_removal.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QWidget>
4
#include <QDoubleSpinBox>
5
#include "
PlotJuggler/transform_function.h
"
6
#include "ui_outlier_removal.h"
7
#include "
PlotJuggler/contrib/ring_span.hpp
"
8
9
using namespace
PJ
;
10
11
namespace
Ui
12
{
13
class
OutlierRemovalFilter
;
14
}
15
16
class
OutlierRemovalFilter
:
public
TransformFunction_SISO
17
{
18
public
:
19
explicit
OutlierRemovalFilter
();
20
21
~
OutlierRemovalFilter
()
override
;
22
23
static
const
char
*
transformName
()
24
{
25
return
"Outlier Removal"
;
26
}
27
28
const
char
*
name
()
const override
29
{
30
return
transformName();
31
}
32
33
QWidget* optionsWidget()
override
;
34
35
bool
xmlSaveState(QDomDocument& doc, QDomElement& parent_element)
const override
;
36
37
bool
xmlLoadState(
const
QDomElement& parent_element)
override
;
38
39
private
:
40
Ui::OutlierRemovalFilter*
ui
;
41
QWidget*
_widget
;
42
std::vector<double>
_buffer
;
43
nonstd::ring_span_lite::ring_span<double>
_ring_view
;
44
45
std::optional<PlotData::Point> calculateNextPoint(
size_t
index)
override
;
46
};
OutlierRemovalFilter::_buffer
std::vector< double > _buffer
Definition:
outlier_removal.h:42
transform_function.h
OutlierRemovalFilter::ui
Ui::OutlierRemovalFilter * ui
Definition:
outlier_removal.h:40
Ui
Definition:
cheatsheet_dialog.h:6
OutlierRemovalFilter::_ring_view
nonstd::ring_span_lite::ring_span< double > _ring_view
Definition:
outlier_removal.h:43
PJ::TransformFunction_SISO
Simplified version with Single input and Single output.
Definition:
transform_function.h:88
ring_span.hpp
OutlierRemovalFilter::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition:
outlier_removal.h:28
OutlierRemovalFilter::_widget
QWidget * _widget
Definition:
outlier_removal.h:41
PJ
Definition:
dataloader_base.h:16
OutlierRemovalFilter::transformName
static const char * transformName()
Definition:
outlier_removal.h:23
nonstd::ring_span_lite::ring_span< double >
OutlierRemovalFilter
Definition:
outlier_removal.h:16
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45