liba 0.1.15
An algorithm library based on C/C++
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
hpf.h File Reference

High Pass Filter. More...

#include "math.h"
Include dependency graph for hpf.h:

Go to the source code of this file.

Data Structures

struct  a_hpf
 instance structure for High Pass Filter More...
 

Macros

#define A_HPF_1(alpha)
 
#define A_HPF_2(fc, ts)
 
#define A_HPF_GEN(fc, ts)
 

Typedefs

typedef struct a_hpf a_hpf
 instance structure for High Pass Filter
 
typedef struct a_hpf a::hpf
 

Functions

a_real a_hpf_gen (a_real fc, a_real ts)
 generate for High Pass Filter
 
void a_hpf_init (a_hpf *ctx, a_real alpha)
 initialize for High Pass Filter
 
a_real a_hpf_iter (a_hpf *ctx, a_real x)
 compute for High Pass Filter
 
void a_hpf_zero (a_hpf *ctx)
 zeroing for High Pass Filter
 

Detailed Description

High Pass Filter.

high frequencies are passed, low frequencies are attenuated.

RCd(ViVo)dt=Vo

RC[Vi(n)Vi(n1)][Vo(n)Vo(n1)]Ts=Vo(n)

Vo(n)=RCRC+Ts[Vo(n1)+Vi(n)Vi(n1)]

α=RCRC+Ts=12πfcTs+1

Vo(n)=α[Vo(n1)+Vi(n)Vi(n1)]

https://en.wikipedia.org/wiki/High-pass_filter