mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
PC Application: partial firmware update dialog
This commit is contained in:
parent
8c8749accd
commit
07ba714f1f
134 changed files with 13954 additions and 7 deletions
23
Software/PC_Application/averaging.h
Normal file
23
Software/PC_Application/averaging.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef AVERAGING_H
|
||||
#define AVERAGING_H
|
||||
|
||||
|
||||
#include "Device/device.h"
|
||||
#include <deque>
|
||||
#include <complex>
|
||||
|
||||
class Averaging
|
||||
{
|
||||
public:
|
||||
Averaging();
|
||||
void reset();
|
||||
void setAverages(unsigned int a);
|
||||
Protocol::Datapoint process(Protocol::Datapoint d);
|
||||
unsigned int getLevel();
|
||||
private:
|
||||
std::vector<std::deque<std::array<std::complex<double>, 4>>> avg;
|
||||
int maxPoints;
|
||||
unsigned int averages;
|
||||
};
|
||||
|
||||
#endif // AVERAGING_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue