LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Weighted Sum
Collaboration diagram for Weighted Sum:

Functions

f32_t tpt_weighted_sum_f32 (const f32_t *aInData, const f32_t *aWeight, uint32_t aCount)
 Weighted Sum of the single-precision floating-point vector. More...
 

Detailed Description

This function calculates the weighted sum of the input vector. TPT DSP library only supports the weighted sum function for single-precision floating-point data.

Function Documentation

◆ tpt_weighted_sum_f32()

f32_t tpt_weighted_sum_f32 ( const f32_t aInData,
const f32_t aWeight,
uint32_t  aCount 
)

Weighted Sum of the single-precision floating-point vector.

Parameters
[in]aInDatapointer of the input vector
[in]aWeightpointer of the weighted vector
[in]aCountnumber of elements in a vector
Returns
f32_t Weighted sum value