Estimates normal auto-correlation of a vector.
IppStatus ippsAutoCorr_NormE_16s32s (const Ipp16s* pSrc, int len, Ipp32s* pDst, int lenDst, int* pNorm);
IppStatus ippsAutoCorr_NormE_NR_16s (const Ipp16s* pSrc, int len, Ipp16s* pDst, int lenDst, int* pNorm);
pSrc |
Pointer to the source vector in Q12. |
len |
Number of elements in the source vector. |
pDst |
Pointer to the destination vector that stores the estimated auto-correlation results of the source vector. |
lenDst |
The number of elements in the destination vector. |
pNorm |
Pointer to the output scale factor. |
The function ippsAutoCorr_NormE is declared in the ippsc.h file. This function calculates the autocorrelation of the source vector pSrc. The results are scaled according to the first autocorrelation coefficient (energy) value. Specifically, autocorrelation coefficients are multiplied by the factor 2 norm , where norm ≥ 0 is calculated so as to make the first coefficient normalized:
where
The corresponding scaling factor, norm, is returned by pNorm.
The function that has the NR suffix performs the “nearest right” rounding (see Rounding Mode).
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pSrc or pDst or pNorm pointer is NULL. |
ippStsSizeErr |
Indicates an error when len or lenDst is less than or equal to zero. |
ippStsOverflow |
Indicates a warning that at least one result value was saturated. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.