MinAbsIndx

Minimum absolute value with index

Synopsis

FwStatus   fwsMinAbsIndx_16s ( const Fw16s * pSrcint lenFw16s * pMinAbsint * pIndx );
FwStatus   fwsMinAbsIndx_32s ( const Fw32s * pSrcint lenFw32s * pMinAbsint * pIndx );

Parameters

len   Specifies the number of elements in a buffer.
pIndx   Pointer to the destination buffer that contains the index of the maximum or minimum value in the source buffer.
pMinAbs   Pointer to the destination buffer that contains the minimum absolute value in the source buffer.
pSrc   Pointer to a source buffer.

Description

These functions step through vector elements in a source buffer, find the minimum absolute value and its index.

The minimum absolute value and the index are written to locations specified by pointers.