summaryrefslogtreecommitdiff
path: root/src/iir_bp.h
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2024-03-16 11:21:23 -0700
committerJohn Denker <jsd@av8n.com>2024-03-16 11:42:15 -0700
commit9852b855db2a65ea6eb5e877411634820214ddf0 (patch)
treec4c4504b34ef81d67891ed137ec2cfaabb4d6d04 /src/iir_bp.h
parent634d365a03cb0581a062cd3cf4db9ae69f1cde26 (diff)
initial setupHEADmaster
Diffstat (limited to 'src/iir_bp.h')
-rw-r--r--src/iir_bp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/iir_bp.h b/src/iir_bp.h
new file mode 100644
index 0000000..762c25c
--- /dev/null
+++ b/src/iir_bp.h
@@ -0,0 +1,17 @@
+#ifndef IIR_BP_H
+#define IIR_BP_H
+
+#include <vector>
+#include <complex>
+
+typedef std::complex<double> C;
+
+std::vector<C> neg(const std::vector<C>& foo);
+std::vector<C> expand_poly(const std::vector<C>& cvec);
+std::vector<double> rxpoly(const std::vector<C>& foo);
+std::vector<C> dpole_bwlp( int n, double fcf, double extraPole=0.);
+std::vector<double> dcof_bwlp( int n, double fcf, double extraPole=0.);
+std::vector<double> ccof_bwlp(const int n, const double extraZero=0.);
+std::vector<C> croot_bwlp (int n, double extraZero=0.);
+
+#endif