Skip to content

Instantly share code, notes, and snippets.

@jpcima jpcima/transfer.cc
Created Aug 1, 2019

Embed
What would you like to do?
#include "bbd_filter.cc"
#include <cstdio>
int main()
{
double fmin = 0.0;
double fmax = 100000.0;
unsigned samples = 8192;
const BBD_Filter_Spec &spec = bbd_fin_j60;
//const BBD_Filter_Spec &spec = bbd_fout_j60;
for (unsigned i = 0; i < samples; ++i) {
double f = fmin + (fmax - fmin) * i * (1.0 / (samples - 1));
cdouble h = spec.transfer(f);
printf("%f %f %f\n", f, std::abs(h), std::arg(h));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.