![]() |
Edge AI Add-on API 2.2.0
|
| uint16_t nrf_dsp_window_flatten_feed_bymask_f32 | ( | nrf_dsp_window_flatten_t * | p_ctx, |
| const flt32_t * | p_input, | ||
| uint16_t | num, | ||
| const uint8_t * | p_usage_mask ) |
#include <include/nrf_edgeai/dsp/utils/data_windowing/nrf_dsp_window_flatten.h>
Feeds f32 samples to the floating-point flatten by columns window, with ordering by feature columns, e.g p_input = [x,y,z,x1,y1,z1] -> p_window = [x,x1,.., y,y1,.., z,z1,..], usage of inputs column is determined by p_input_usage_mask where each bit represents each unique feature.
| [in,out] | p_ctx | Pointer to the window context, should be initialized first nrf_dsp_window_flatten_init |
| [in] | p_input | Pointer to the feature sample buffer |
| [in] | num | Number of samples in the input buffer, num = buffer_size / p_ctx->uniq_features_num |
| [in] | p_usage_mask | Input features usage mask |