XCORE SDK
XCORE Software Development Kit
Public Attributes | List of all members
ns_state_t Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ alpha_d

float_s32_t ns_state_t::alpha_d

EWMA of the smoothing parameter for alpha_d_tilde.

◆ alpha_d_tilde

bfp_s32_t ns_state_t::alpha_d_tilde

BFP structure to hold the time-varying smoothing parameter.

◆ alpha_p

float_s32_t ns_state_t::alpha_p

EWMA of the smoohting parameter for p.

◆ alpha_s

float_s32_t ns_state_t::alpha_s

EWMA of the smoothing parameter for S.

◆ data_adt

int32_t ns_state_t::data_adt[NS_PROC_FRAME_BINS]

int32_t array to hold the data for alpha_d_tilde.

◆ data_lambda_hat

int32_t ns_state_t::data_lambda_hat[NS_PROC_FRAME_BINS]

int32_t array to hold the data for lambda_hat.

◆ data_ovelap

int32_t ns_state_t::data_ovelap[NS_FRAME_ADVANCE]

int32_t array to hold the data for overlap.

◆ data_p

int32_t ns_state_t::data_p[NS_PROC_FRAME_BINS]

int32_t array to hold the data for p.

◆ data_prev_frame

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.

◆ data_rev_wind

int32_t ns_state_t::data_rev_wind[NS_WINDOW_LENGTH/2]

int32_t array to hold the data for rev_wind.

◆ data_S

int32_t ns_state_t::data_S[NS_PROC_FRAME_BINS]

int32_t array to hold the data for S.

◆ data_S_min

int32_t ns_state_t::data_S_min[NS_PROC_FRAME_BINS]

int32_t array to hold the data for S_min.

◆ data_S_tmp

int32_t ns_state_t::data_S_tmp[NS_PROC_FRAME_BINS]

int32_t array to hold the data for S_tmp.

◆ delta

float_s32_t ns_state_t::delta

EWMA of the energy ratio to calculate p.

◆ lambda_hat

bfp_s32_t ns_state_t::lambda_hat

BFP structure to hold the noise estimanion.

◆ one_minus_alpha_p

float_s32_t ns_state_t::one_minus_alpha_p

EWMA of the 1 - alpha_p parameter.

◆ one_minus_alpha_s

float_s32_t ns_state_t::one_minus_alpha_s

EWMA of the 1 - alpha_s parameter.

◆ one_minus_aplha_d

float_s32_t ns_state_t::one_minus_aplha_d

EWMA of the 1 - alpha_d parameter.

◆ overlap

bfp_s32_t ns_state_t::overlap

BFP structure to hold the overlap.

◆ p

bfp_s32_t ns_state_t::p

BFP structure to hold the conditional signal presence probability

◆ prev_frame

bfp_s32_t ns_state_t::prev_frame

BFP structure to hold the previous frame.

◆ reset_counter

unsigned ns_state_t::reset_counter

Filter reset counter.

◆ reset_period

unsigned ns_state_t::reset_period

Filter reset period value for auto-reset.

◆ rev_wind

bfp_s32_t ns_state_t::rev_wind

BFP structure to hold the second part of the window.

◆ S

bfp_s32_t ns_state_t::S

BFP structure to hold the local energy.

◆ S_min

bfp_s32_t ns_state_t::S_min

BFP structure to hold the minimun local energy whithin 10 frames.

◆ S_tmp

bfp_s32_t ns_state_t::S_tmp

BFP structure to hold the temporary local energy.

◆ wind

bfp_s32_t ns_state_t::wind

BFP structure to hold the first part of the window.


The documentation for this struct was generated from the following file: