LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Collaboration diagram for Minimum:

Functions

void tpt_min_f32 (f32_t *aResult, uint32_t *aIndex, const f32_t *aInData, uint32_t aCount)
 Minimum value of a floating-point vector. More...
 
void tpt_min_q15 (q15_t *aResult, uint32_t *aIndex, const q15_t *aInData, uint32_t aCount)
 Minimum value of a Q15 vector. More...
 
void tpt_min_q31 (q31_t *aResult, uint32_t *aIndex, const q31_t *aInData, uint32_t aCount)
 Minimum value of a Q31 vector. More...
 
void tpt_min_q7 (q7_t *aResult, uint32_t *aIndex, const q7_t *aInData, uint32_t aCount)
 Minimum value of a Q7 vector. More...
 

Detailed Description

Computes the minimum value of an array of data. The function returns both the minimum value and its position within the array. There are separate functions for floating-point, Q31, Q15, and Q7 data types.

Function Documentation

◆ tpt_min_f32()

void tpt_min_f32 ( f32_t aResult,
uint32_t *  aIndex,
const f32_t aInData,
uint32_t  aCount 
)

Minimum value of a floating-point vector.

Parameters
[out]aResultminimum value returned here
[out]aIndexindex of minimum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_min_q15()

void tpt_min_q15 ( q15_t aResult,
uint32_t *  aIndex,
const q15_t aInData,
uint32_t  aCount 
)

Minimum value of a Q15 vector.

Parameters
[out]aResultminimum value returned here
[out]aIndexindex of minimum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_min_q31()

void tpt_min_q31 ( q31_t aResult,
uint32_t *  aIndex,
const q31_t aInData,
uint32_t  aCount 
)

Minimum value of a Q31 vector.

Parameters
[out]aResultminimum value returned here
[out]aIndexindex of minimum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_min_q7()

void tpt_min_q7 ( q7_t aResult,
uint32_t *  aIndex,
const q7_t aInData,
uint32_t  aCount 
)

Minimum value of a Q7 vector.

Parameters
[out]aResultminimum value returned here
[out]aIndexindex of minimum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none