114 #ifndef ti_edgeai_feature_extract__include 115 #define ti_edgeai_feature_extract__include 124 #ifndef FE_PARAMETERS_IS_DEFINE 127 #define ADCSAMPLESIZE 125 128 #define SAMPLING_FREQ 25 131 #define PADDING_SIZE_LEFT 4 132 #define PADDING_SIZE_RIGHT 3 133 #define PADDED_INPUT_SIZE (ADCSAMPLESIZE + PADDING_SIZE_LEFT + PADDING_SIZE_RIGHT) 134 #define WINDOW_SIZE 32 135 #define WINDOW_STRIDE_SIZE 4 136 #define NUM_WINDOWS 25 140 #define NUM_BINS (FFT_SIZE / 2) 141 #define POOLED_BINS (NUM_BINS / 2) 147 #define KURTOSIS_CHUNK_SIZE 8 148 #define KURTOSIS_STRIDE_SIZE 8 151 #define NUM_FEAT_FFT 16 152 #define NUM_FEAT_TOPFREQ TOP_N_FREQ 153 #define NUM_FEAT_KURTOSIS 4 154 #define NUM_FEAT_ZCR 1 155 #define NUM_FEAT_SLOPE 1 156 #define NUM_FEAT_PW_SPEC 1 157 #define NUM_TOTAL_FEATURES 25 313 uint32_t window_index,
314 const float *kurtosis_output,
316 const float *slope_changes,
317 const float *top_dominant_freq,
318 const float *power_spectrum,
319 float *concatenated_features);