Functions

Maximum
[Statistics Functions]

Functions

void arm_max_f32 (float32_t *pSrc, uint32_t blockSize, float32_t *pResult, uint32_t *pIndex)
void arm_max_q31 (q31_t *pSrc, uint32_t blockSize, q31_t *pResult, uint32_t *pIndex)
void arm_max_q15 (q15_t *pSrc, uint32_t blockSize, q15_t *pResult, uint32_t *pIndex)
void arm_max_q7 (q7_t *pSrc, uint32_t blockSize, q7_t *pResult, uint32_t *pIndex)

Detailed Description

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


Function Documentation

void arm_max_f32 ( float32_t *  pSrc,
uint32_t  blockSize,
float32_t *  pResult,
uint32_t *  pIndex 
)

Maximum value of a floating-point vector.

Parameters:
[in]*pSrcpoints to the input vector
[in]blockSizelength of the input vector
[out]*pResultmaximum value returned here
[out]*pIndexindex of maximum value returned here
Returns:
none.
Examples:
arm_class_marks_example_f32.c, and arm_fft_bin_example_f32.c.

Definition at line 53 of file arm_max_f32.c.

void arm_max_q31 ( q31_t *  pSrc,
uint32_t  blockSize,
q31_t *  pResult,
uint32_t *  pIndex 
)

Maximum value of a Q31 vector.

Parameters:
[in]*pSrcpoints to the input vector
[in]blockSizelength of the input vector
[out]*pResultmaximum value returned here
[out]*pIndexindex of maximum value returned here
Returns:
none.

Definition at line 45 of file arm_max_q31.c.

void arm_max_q15 ( q15_t *  pSrc,
uint32_t  blockSize,
q15_t *  pResult,
uint32_t *  pIndex 
)

Maximum value of a Q15 vector.

Parameters:
[in]*pSrcpoints to the input vector
[in]blockSizelength of the input vector
[out]*pResultmaximum value returned here
[out]*pIndexindex of maximum value returned here
Returns:
none.
Conditions for optimum performance
Input and output buffers should be aligned by 32-bit

Definition at line 49 of file arm_max_q15.c.

void arm_max_q7 ( q7_t *  pSrc,
uint32_t  blockSize,
q7_t *  pResult,
uint32_t *  pIndex 
)

Maximum value of a Q7 vector.

Parameters:
[in]*pSrcpoints to the input vector
[in]blockSizelength of the input vector
[out]*pResultmaximum value returned here
[out]*pIndexindex of maximum value returned here
Returns:
none.
Conditions for optimum performance
Input and output buffers should be aligned by 32-bit

Definition at line 49 of file arm_max_q7.c.

 All Data Structures Files Functions Variables Enumerations Enumerator Defines