Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_dsp_window_flatsliding_feed_f32()

uint16_t nrf_dsp_window_flatsliding_feed_f32 ( nrf_dsp_window_flatsliding_t * p_ctx,
const flt32_t * p_input,
uint16_t num )

#include <include/nrf_edgeai/dsp/utils/data_windowing/nrf_dsp_window_flatten_sliding.h>

Feeds f32 samples to the floating-point flatten by colums window, with ordering by feature columns, e.g p_input = [x,y,z,x1,y1,z1] -> p_window = [x,x1,.., y,y1,.., z,z1,..].

Note
If window was filled, next call will shift window to the right for each unique feature in window by p_ctx->window_shift
Parameters
[in,out]p_ctxPointer to the window context, should be initialized first nrf_dsp_window_flatsliding_init
[in]p_inputPointer to the feature sample buffer
[in]numNumber of samples in the input buffer, num = buffer_size / p_ctx->uniq_features_num
Returns
uint16_t Number of remaining samples to collect window