XCORE SDK
XCORE Software Development Kit
|
NS state structure. More...
#include <ns_state.h>
Public Attributes | |
bfp_s32_t | S |
bfp_s32_t | S_min |
bfp_s32_t | S_tmp |
bfp_s32_t | p |
bfp_s32_t | alpha_d_tilde |
bfp_s32_t | lambda_hat |
int32_t | data_S [NS_PROC_FRAME_BINS] |
int32_t | data_S_min [NS_PROC_FRAME_BINS] |
int32_t | data_S_tmp [NS_PROC_FRAME_BINS] |
int32_t | data_p [NS_PROC_FRAME_BINS] |
int32_t | data_adt [NS_PROC_FRAME_BINS] |
int32_t | data_lambda_hat [NS_PROC_FRAME_BINS] |
bfp_s32_t | prev_frame |
bfp_s32_t | overlap |
bfp_s32_t | wind |
bfp_s32_t | rev_wind |
int32_t | data_prev_frame [NS_PROC_FRAME_LENGTH - NS_FRAME_ADVANCE] |
int32_t | data_ovelap [NS_FRAME_ADVANCE] |
int32_t | data_rev_wind [NS_WINDOW_LENGTH/2] |
float_s32_t | delta |
float_s32_t | alpha_d |
float_s32_t | alpha_s |
float_s32_t | alpha_p |
float_s32_t | one_minus_aplha_d |
float_s32_t | one_minus_alpha_s |
float_s32_t | one_minus_alpha_p |
unsigned | reset_period |
unsigned | reset_counter |
NS state structure.
This structure holds the current state of the NS instance and members are updated each time that ns_process_frame()
runs. Many of these members are exponentially-weighted moving averages (EWMA) which influence the behaviour of the NS filter. The user should not directly modify any of these members.
float_s32_t ns_state_t::alpha_d |
EWMA of the smoothing parameter for alpha_d_tilde.
bfp_s32_t ns_state_t::alpha_d_tilde |
BFP structure to hold the time-varying smoothing parameter.
float_s32_t ns_state_t::alpha_p |
EWMA of the smoohting parameter for p.
float_s32_t ns_state_t::alpha_s |
EWMA of the smoothing parameter for S.
int32_t ns_state_t::data_adt[NS_PROC_FRAME_BINS] |
int32_t array to hold the data for alpha_d_tilde.
int32_t ns_state_t::data_lambda_hat[NS_PROC_FRAME_BINS] |
int32_t array to hold the data for lambda_hat.
int32_t ns_state_t::data_ovelap[NS_FRAME_ADVANCE] |
int32_t array to hold the data for overlap.
int32_t ns_state_t::data_p[NS_PROC_FRAME_BINS] |
int32_t array to hold the data for p.
int32_t ns_state_t::data_prev_frame[NS_PROC_FRAME_LENGTH - NS_FRAME_ADVANCE] |
int32_t array to hold the data for prev_frame.
int32_t ns_state_t::data_rev_wind[NS_WINDOW_LENGTH/2] |
int32_t array to hold the data for rev_wind.
int32_t ns_state_t::data_S[NS_PROC_FRAME_BINS] |
int32_t array to hold the data for S.
int32_t ns_state_t::data_S_min[NS_PROC_FRAME_BINS] |
int32_t array to hold the data for S_min.
int32_t ns_state_t::data_S_tmp[NS_PROC_FRAME_BINS] |
int32_t array to hold the data for S_tmp.
float_s32_t ns_state_t::delta |
EWMA of the energy ratio to calculate p.
bfp_s32_t ns_state_t::lambda_hat |
BFP structure to hold the noise estimanion.
float_s32_t ns_state_t::one_minus_alpha_p |
EWMA of the 1 - alpha_p parameter.
float_s32_t ns_state_t::one_minus_alpha_s |
EWMA of the 1 - alpha_s parameter.
float_s32_t ns_state_t::one_minus_aplha_d |
EWMA of the 1 - alpha_d parameter.
bfp_s32_t ns_state_t::overlap |
BFP structure to hold the overlap.
bfp_s32_t ns_state_t::p |
BFP structure to hold the conditional signal presence probability
bfp_s32_t ns_state_t::prev_frame |
BFP structure to hold the previous frame.
unsigned ns_state_t::reset_counter |
Filter reset counter.
unsigned ns_state_t::reset_period |
Filter reset period value for auto-reset.
bfp_s32_t ns_state_t::rev_wind |
BFP structure to hold the second part of the window.
bfp_s32_t ns_state_t::S |
BFP structure to hold the local energy.
bfp_s32_t ns_state_t::S_min |
BFP structure to hold the minimun local energy whithin 10 frames.
bfp_s32_t ns_state_t::S_tmp |
BFP structure to hold the temporary local energy.
bfp_s32_t ns_state_t::wind |
BFP structure to hold the first part of the window.