88 #ifndef ti_edgeai_feature_extract__include 89 #define ti_edgeai_feature_extract__include 98 #ifndef FE_PARAMETERS_IS_DEFINE 101 #define ADCSAMPLESIZE 125 102 #define SAMPLING_FREQ 25 105 #define PADDING_SIZE_LEFT 4 106 #define PADDING_SIZE_RIGHT 3 107 #define PADDED_INPUT_SIZE (ADCSAMPLESIZE + PADDING_SIZE_LEFT + PADDING_SIZE_RIGHT) 108 #define WINDOW_SIZE 32 109 #define WINDOW_STRIDE_SIZE 4 110 #define NUM_WINDOWS 25 114 #define NUM_BINS (FFT_SIZE / 2) 115 #define POOLED_BINS (NUM_BINS / 2) 121 #define KURTOSIS_CHUNK_SIZE 8 122 #define KURTOSIS_STRIDE_SIZE 8 125 #define NUM_FEAT_FFT 16 126 #define NUM_FEAT_TOPFREQ TOP_N_FREQ 127 #define NUM_FEAT_KURTOSIS 4 128 #define NUM_FEAT_ZCR 1 129 #define NUM_FEAT_SLOPE 1 130 #define NUM_FEAT_PW_SPEC 1 131 #define NUM_TOTAL_FEATURES 25 287 uint32_t window_index,
288 const float *kurtosis_output,
290 const float *slope_changes,
291 const float *top_dominant_freq,
292 const float *power_spectrum,
293 float *concatenated_features);