moving_variance.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QRadioButton>
4 #include <QSpinBox>
5 #include <QDoubleSpinBox>
7 #include "ui_moving_variance.h"
9 
10 using namespace PJ;
11 
12 namespace Ui
13 {
15 }
16 
18 {
19 public:
20  explicit MovingVarianceFilter();
21 
22  ~MovingVarianceFilter() override;
23 
24  void reset() override;
25 
26  static const char* transformName()
27  {
28  return "Moving Variance / Stdev";
29  }
30 
31  const char* name() const override
32  {
33  return transformName();
34  }
35 
36  QWidget* optionsWidget() override;
37 
38  bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element) const override;
39 
40  bool xmlLoadState(const QDomElement& parent_element) override;
41 
42 private:
43  Ui::MovingVarianceFilter* ui;
44  QWidget* _widget;
45  std::vector<PlotData::Point> _buffer;
47 
48  std::optional<PlotData::Point> calculateNextPoint(size_t index) override;
49 };
MovingVarianceFilter
Definition: moving_variance.h:17
MovingVarianceFilter::transformName
static const char * transformName()
Definition: moving_variance.h:26
MovingVarianceFilter::ui
Ui::MovingVarianceFilter * ui
Definition: moving_variance.h:43
transform_function.h
Ui
Definition: cheatsheet_dialog.h:6
PJ::TransformFunction_SISO
Simplified version with Single input and Single output.
Definition: transform_function.h:88
ring_span.hpp
backward::Color::reset
@ reset
Definition: backward.hpp:3678
MovingVarianceFilter::_ring_view
nonstd::ring_span_lite::ring_span< PlotData::Point > _ring_view
Definition: moving_variance.h:46
PJ
Definition: dataloader_base.h:16
MovingVarianceFilter::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: moving_variance.h:31
MovingVarianceFilter::_widget
QWidget * _widget
Definition: moving_variance.h:44
MovingVarianceFilter::_buffer
std::vector< PlotData::Point > _buffer
Definition: moving_variance.h:45
nonstd::ring_span_lite::ring_span< PlotData::Point >


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45