|
void | insert () |
| Re-insert all AC variables into the AC space. More...
|
|
◆ gsc_adaptive_stage()
gsc_adaptive_stage::gsc_adaptive_stage::gsc_adaptive_stage |
( |
MHA_AC::algo_comm_t & |
ac, |
|
|
const mhaconfig_t |
in_cfg, |
|
|
int |
lenOldSamps, |
|
|
bool |
doCircularComp, |
|
|
float |
mu, |
|
|
float |
alp, |
|
|
bool |
useVAD, |
|
|
const std::string & |
vadName_ |
|
) |
| |
Ctor of the rt processing class.
- Parameters
-
ac | Handle to AC space |
in_cfg | Input signal configuration |
lenOldSamps | How many old samples to buffer |
doCircularComp | Compensate for circular convolution? |
mu | Scalar coefficient for gradient |
alp | Autoregressive coefficient for estimating PSD |
useVAD | Use voice activity detection? |
vadName_ | Name of the VAD AC variable |
◆ ~gsc_adaptive_stage()
gsc_adaptive_stage::gsc_adaptive_stage::~gsc_adaptive_stage |
( |
| ) |
|
|
default |
◆ process()
Processing callback.
- Parameters
-
- Returns
- Returns a pointer to the output signal
◆ insert()
void gsc_adaptive_stage::gsc_adaptive_stage::insert |
( |
| ) |
|
|
private |
Re-insert all AC variables into the AC space.
◆ ac
◆ lenOldSamps
unsigned int gsc_adaptive_stage::gsc_adaptive_stage::lenOldSamps |
|
private |
Number of old samples to buffer.
◆ lenNewSamps
unsigned int gsc_adaptive_stage::gsc_adaptive_stage::lenNewSamps |
|
private |
◆ bufSize
unsigned int gsc_adaptive_stage::gsc_adaptive_stage::bufSize |
|
private |
Total buffer size.
Must be lenOldSamps+lenNewSamps
◆ frac_old
float gsc_adaptive_stage::gsc_adaptive_stage::frac_old |
|
private |
Fraction of new samples to total buffer size.
◆ mha_fft
mha_fft_t gsc_adaptive_stage::gsc_adaptive_stage::mha_fft |
|
private |
◆ nfreq
unsigned int gsc_adaptive_stage::gsc_adaptive_stage::nfreq |
|
private |
Number of frequency bins.
◆ nchan
unsigned int gsc_adaptive_stage::gsc_adaptive_stage::nchan |
|
private |
Number of channels in input signal.
◆ desired_chan
unsigned int gsc_adaptive_stage::gsc_adaptive_stage::desired_chan |
|
private |
Channel index containing the desired response.
Always last channel by convention
◆ doCircularComp
bool gsc_adaptive_stage::gsc_adaptive_stage::doCircularComp |
|
private |
Whether to compensate for circular convolution.
◆ mu
float gsc_adaptive_stage::gsc_adaptive_stage::mu |
|
private |
Linear coefficient for gradient.
◆ alp
float gsc_adaptive_stage::gsc_adaptive_stage::alp |
|
private |
Autoregressive coefficient for estimating PSD.
◆ useVAD
bool gsc_adaptive_stage::gsc_adaptive_stage::useVAD |
|
private |
◆ vadName
std::string gsc_adaptive_stage::gsc_adaptive_stage::vadName |
|
private |
FFT of the buffered input signal.
Filter output, frequency domain.
Filter output, time domain.
Error signal, time domain.
Error signal, frequency domain.
◆ E2
Error spectrum multiplied by input spectrum: E2=X*E.
◆ grad
◆ Grad
◆ e_out
◆ Psum
Signal power estimate, summed over all channels.
The documentation for this class was generated from the following files: