LibreVNA/Software/PC_Application/Traces/Math/dft.h

37 lines
679 B
C
Raw Normal View History

2020-12-12 03:28:40 +08:00
#ifndef DFT_H
#define DFT_H
#include "tracemath.h"
#include "windowfunction.h"
namespace Math {
class DFT : public TraceMath
{
public:
DFT();
DataType outputType(DataType inputType) override;
QString description() override;
void edit() override;
static QWidget* createExplanationWidget();
virtual nlohmann::json toJSON() override;
virtual void fromJSON(nlohmann::json j) override;
Type getType() override {return Type::DFT;};
public slots:
void inputSamplesChanged(unsigned int begin, unsigned int end) override;
private:
void updateDFT();
bool automaticDC;
double DCfreq;
WindowFunction window;
};
}
#endif // DFT_H