2 #include "ui_moving_rms.h"
6 , _widget(new QWidget())
8 , _ring_view(_buffer.begin(), _buffer.end())
12 connect(
ui->spinBoxSamples, qOverload<int>(&QSpinBox::valueChanged),
this,
13 [=](
int) { emit parametersChanged(); });
35 QDomElement widget_el = doc.createElement(
"options");
36 widget_el.setAttribute(
"value",
ui->spinBoxSamples->value());
37 parent_element.appendChild(widget_el);
43 QDomElement widget_el = parent_element.firstChildElement(
"options");
44 if (widget_el.isNull())
48 ui->spinBoxSamples->setValue(widget_el.attribute(
"value").toInt());
56 if (buffer_size !=
_buffer.size())
72 for (
size_t i = 0; i < buffer_size; i++)
75 total_sqr += val * val;