Computes the signal-to-noise ratio.
IppStatus ippsSNR_AMRWBE_16s(const Ipp16s* pSrcSignal, const Ipp16s* pSrcEstimatedSignal, int lenSrc, int lenSeg, Ipp16s* pDstSNR);
pSrcSignal |
Pointer to the input signal. |
pSrcEstimatedSignal |
Pointer to the estimated signal. |
lenSrc |
Length of the signals. |
lenSeg |
Length of the segments (subframes). |
pDstSNR |
Pointer to the signal-to-noise ratio in dB. |
The function ippsSNR_AMRWBE is declared in ippsc.h file. This function computes in decibels (dB) the average segmental signal-to-noise ratio between the lenSrc samples of the signal pSrcSignal(x) and its estimation pSrcEstimatedSignal(e). The segmental signal-to-noise ratio (snri) in the i-th segment is defined as follows:
The average segmental signal-to-noise ratio SNR is computed as:
where Nseg is the number of segments.
The segment length is lenSeg samples. The results are stored in the pDstSNR.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointer is NULL. |
ippStsSizeErr |
Indicates an error when lenSrc or lenSeg is less than or equal to zero. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.