AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
FrequencyResponseHelper.h
Go to the documentation of this file.
1//=======================================================================
29//=======================================================================
30
31#ifndef FREQUENCYRESPONSEHELPER_H
32#define FREQUENCYRESPONSEHELPER_H
33
34#include <vector>
35#include <complex>
36
43public:
51 static std::vector<double> logspace(double start, double end, int num_points);
52
61 static std::vector<double> calculate_frequency_response(const std::vector<double> &B, const std::vector<double> &A, double sample_rate, const std::vector<double> &frequencies);
62};
63
64#endif // FREQUENCYRESPONSEHELPER_H
Provides methods to help calculate the frequency response of a filter.
Definition: FrequencyResponseHelper.h:42
static std::vector< double > logspace(double start, double end, int num_points)
Creates a logarithmically spaced vector.
Definition: FrequencyResponseHelper.cpp:39
static std::vector< double > calculate_frequency_response(const std::vector< double > &B, const std::vector< double > &A, double sample_rate, const std::vector< double > &frequencies)
Calculates the frequency response of a filter given its coefficients.
Definition: FrequencyResponseHelper.cpp:59