rbfilter/bilinear.cpp

27 wiersze
532 B
C++
Czysty Zwykły widok Historia

2018-05-28 10:07:53 +00:00
/******************************************************************************
Bilinear.cpp
Copyright (c) Roger Burghall 2014..2017
******************************************************************************/
2018-05-27 14:10:28 +00:00
#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);
}