-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMinimumStatistics.h
57 lines (52 loc) · 1.02 KB
/
MinimumStatistics.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* MinimumStatistics.h
*
* Created on: 2015/11/19
* Author: Shunsuke Aihara([email protected])
*/
#ifndef MINIMUMSTATISTICS_H_
#define MINIMUMSTATISTICS_H_
#include "utils.h"
#include "string.h"
#include "math.h"
class MinimumStatistics {
public:
MinimumStatistics(int size, int samplingrate, double *noiseProfile);
virtual ~MinimumStatistics();
void process(double *amp);
void updateNoiseProfile(double *noise);
private:
int counter;
int fftsize;
double snrexp;
double av;
double alpha_c_lambda;
int U;
int V;
int D;
double M;
double M2;
double H;
int subwc;
int ibuf;
int *lmin_flag_lambda;
double alpha_max;
double beta_max;
double qeqimin;
double clear_max;
double *actmin_lambda;
double *actmin_lambda_sub;
double *Pmin_u_lambda;
double **actbuf;
double *P_lambda;
double *sn2_lambda;
double *eP_lambda;
double *eP2_lambda;
double *power;
double *alpha_lambda_hat;
double *Qeq_lambda_inverse;
double *Bmin_lambda;
double *Bmin_lambda_sub;
int *k_mod;
};
#endif /* MINIMUMSTATISTICS_H_ */