AutoCorrLagMax

Estimates the maximum autocorrelation of a vector.

Syntax

IppStatus ippsAutoCorrLagMax_Inv_16s (const Ipp16s* pSrc, int len, int lowerLag, int upperLag, Ipp32s* pMax, int* pMaxLag);

IppStatus ippsAutoCorrLagMax_Fwd_16s (const Ipp16s* pSrc, int len, int lowerLag, int upperLag, Ipp32s* pMax, int* pMaxLag);

IppStatus ippsAutoCorrLagMax_32f (const Ipp32f* pSrc, int len, int lowerLag, int upperLag, Ipp32f* pMax, int* pMaxLag);

Parameters

pSrc

Pointer to the input vector [-upperLag, len].

len

Length of autocorrelation.

lowerLag

Lower input lag value.

upperLag

Upper input lag value.

pMax

Pointer to the output maximum of the correlation.

pMaxLag

Pointer to the output lag which holds the maximum of the correlation.

Description

These functions are declared in the ippsc.h file. The functions ippsAutoCorrLagMax_Inv and ippsAutoCorrLagMax_32f find the maximum autocorrelation within the given lag range as:



Here lowerLag ≤ n ≤ upperLag.

The function ippsAutoCorrLagMax_Fwd finds the maximum autocorrelation within the given lag range as given by:



Here lowerLag ≤ n ≤ upperLag.

If several maximums exist, functions return the first of them.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc, pMax, or pMaxLag pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to zero.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.