📄 waterfill.h
字号:
/* function which computes the bit allocation from the channel estimation.
The function uses the so called waterfilling algorithm.*/
// inputs: Hreal, Himag, Noise_var
// outputs: bn, en, btot
// function which sort the values gn and return the index
void sort(float *gn, int *Index);
//bit allocation function
void waterfill(float *Hreal, float *Himag, float Noise_var, int *bn, float *en); //, int *btot);
void waterfill_simple(float *h_hat, float Noise_var, short *bn, float *en, float *gn);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -