blob: 8b359bed8a7773286880cef87701b75d15e8311c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef INCLUDED_MM_F_H
#define INCLUDED_MM_F_H
#include <gr_math.h>
class mm_f {
private:
public:
float d_mm;
float d_omega; //relative sample rate
float d_mu;
float d_gain_mu;
float d_gain_omega;
//delay taps
float d_x_1; //last input sample
float d_a_1; //last decision
mm_f (float omega);
float slicer(float x);
float update(float sample, float decision); //return mu
float update(float sample); //use built in decision
};
#endif
|