kopia lustrzana https://github.com/r-burg/rbfilter
27 wiersze
532 B
C++
27 wiersze
532 B
C++
/******************************************************************************
|
|
|
|
Bilinear.cpp
|
|
|
|
Copyright (c) Roger Burghall 2014..2017
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
#include "math.h"
|
|
#include <complex.h>
|
|
#include "Calcs.h"
|
|
#include <ostream>
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
|
|
|
|
std::complex<double> _bilinear(std::complex<double> s, double Ts)
|
|
{
|
|
std::complex<double> z = (1.0 + s*Ts/2.0) / (1.0 - s*Ts/2.0);
|
|
return(z);
|
|
}
|
|
|
|
|
|
|