2020-11-29 02:32:18 +08:00
|
|
|
#ifndef TDRLOWPASS_H
|
|
|
|
#define TDRLOWPASS_H
|
|
|
|
|
|
|
|
#include "tracemath.h"
|
2020-12-02 05:28:32 +08:00
|
|
|
#include "windowfunction.h"
|
2020-11-29 02:32:18 +08:00
|
|
|
|
|
|
|
namespace Math {
|
|
|
|
|
2020-12-02 05:28:32 +08:00
|
|
|
class TDR : public TraceMath
|
2020-11-29 02:32:18 +08:00
|
|
|
{
|
|
|
|
public:
|
2020-12-02 05:28:32 +08:00
|
|
|
TDR();
|
2020-11-29 02:32:18 +08:00
|
|
|
|
|
|
|
DataType outputType(DataType inputType) override;
|
|
|
|
QString description() override;
|
|
|
|
void edit() override;
|
|
|
|
|
|
|
|
static QWidget* createExplanationWidget();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void inputSamplesChanged(unsigned int begin, unsigned int end) override;
|
2020-12-02 05:28:32 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
void updateTDR();
|
|
|
|
enum class Mode {
|
|
|
|
Lowpass,
|
|
|
|
Bandpass,
|
|
|
|
};
|
|
|
|
Mode mode;
|
|
|
|
WindowFunction window;
|
|
|
|
bool stepResponse;
|
|
|
|
bool automaticDC;
|
|
|
|
std::complex<double> manualDC;
|
2020-11-29 02:32:18 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // TDRBANDPASS_H
|