NMSIS-DSP  Version 1.3.1
NMSIS DSP Software Library
Weighted Average

Weighted average of values. More...

Functions

RISCV_DSP_ATTRIBUTE float16_t riscv_weighted_average_f16 (const float16_t *in, const float16_t *weigths, uint32_t blockSize)
 Weighted average. More...
 
RISCV_DSP_ATTRIBUTE float32_t riscv_weighted_average_f32 (const float32_t *in, const float32_t *weigths, uint32_t blockSize)
 Weighted average. More...
 

Detailed Description

Weighted average of values.

Function Documentation

◆ riscv_weighted_average_f16()

RISCV_DSP_ATTRIBUTE float16_t riscv_weighted_average_f16 ( const float16_t *  in,
const float16_t *  weigths,
uint32_t  blockSize 
)

Weighted average.

Parameters
[in]*inArray of input values.
[in]*weigthsWeights
[in]blockSizeNumber of samples in the input array.
Returns
Weighted average

◆ riscv_weighted_average_f32()

RISCV_DSP_ATTRIBUTE float32_t riscv_weighted_average_f32 ( const float32_t in,
const float32_t weigths,
uint32_t  blockSize 
)

Weighted average.

Parameters
[in]*inArray of input values.
[in]*weigthsWeights
[in]blockSizeNumber of samples in the input array.
Returns
Weighted average