#include <sent/adin.h>
zmean.cのインクルード依存関係図
関数 | |
void | zmean_reset () |
void | sub_zmean (SP16 *speech, int samplenum) |
Remove DC offset. | |
変数 | |
static int | zlen = 0 |
Current recorded length for DC offset estimation. | |
static float | zmean = 0.0 |
Current mean. |
直流成分の推定は入力デバイスごとに異なります. ファイル入力では,データ全体の振幅の平均が用いられます. マイク入力やネットワーク入力の場合,入力ストリームの 最初の ZMEANSAMPLES 個のサンプルの平均から計算され, その値がその後の入力に用いられます.
zmean.c で定義されています。
|
Reset status. 参照元 adin_reset_zmean(). |
|
Remove DC offset. The DC offset is estimated by the first samples after zmean_reset() was called. If the first input segment is longer than ZMEANSAMPLES, the whole input is used to estimate the zero mean. Otherwise, the zero mean will continue to be updated until the read length exceed ZMEANSAMPLES.
参照元 adin_cut(). |