2 #include "ui_outlier_removal.h" 6 _widget(new QWidget()),
8 _ring_view( _buffer.begin(), _buffer.end() )
12 connect(
ui->spinBoxFactor, qOverload<double>(&QDoubleSpinBox::valueChanged),
13 this, [=](
int){ emit parametersChanged(); } );
30 QDomElement widget_el = doc.createElement(
"options");
31 widget_el.setAttribute(
"factor",
ui->spinBoxFactor->value() );
32 parent_element.appendChild( widget_el );
38 QDomElement widget_el = parent_element.firstChildElement(
"options");
39 ui->spinBoxFactor->setValue( widget_el.attribute(
"value",
"100.0").toDouble() );
72 double thresh = (max_y - min_y) *
ui->spinBoxFactor->value();
74 double jump =
std::max(std::abs(d1), std::abs(d2));
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
const Point & at(size_t index) const
nonstd::ring_span_lite::ring_span< double > _ring_view
~OutlierRemovalFilter() override
Ui::OutlierRemovalFilter * ui
nonstd::optional< PlotData::Point > calculateNextPoint(size_t index) override
bool xmlLoadState(const QDomElement &parent_element) override
QWidget * optionsWidget() override
void push_back(value_type const &value)