Signal Statistical Functions

Functions that provide global signal statistics like: sum, mean, standard deviation, min, max, etc.

Signal Min Every Or Max Every

MinEvery And MaxEvery Functions

Performs the min or max operation on the samples of a signal.

Functions

NppStatus nppsMinEvery_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place min value for each pair of elements.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxEvery_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place max value for each pair of elements.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Sum

signal_min_every_or_max_every

Sum

Performs the sum operation on the samples of a signal.

Functions

NppStatus nppsSumGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsSum.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsSum_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pSum, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector sum method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pSum, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit double vector sum method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_16s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pSum, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit short vector sum with integer scaling method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_32s_Sfs_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pSum, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector sum with integer scaling method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_16s32s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp32s *pSum, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector sum (32bit) with integer scaling method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Maximum

Maximum

Performs the maximum operation on the samples of a signal.

Functions

NppStatus nppsMaxGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMax.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMax_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMax, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector max method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMax_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMax, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector max method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMax_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pMax, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector max method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMax_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pMax, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector max method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxIndxGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMaxIndx.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMaxIndx_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMax, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector max index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxIndx_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMax, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector max index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxIndx_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pMax, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector max index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxIndx_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pMax, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector max index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxAbsGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMaxAbs.

Supported data types include NPP_16S, NPP_32S.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMaxAbs_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMaxAbs, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector max absolute method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxAbs_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMaxAbs, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector max absolute method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxAbsIndxGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMaxAbsIndx.

Supported data types include NPP_16S, NPP_32S.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMaxAbsIndx_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMaxAbs, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector max absolute index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaxAbsIndx_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMaxAbs, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector max absolute index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Minimum

Minimum

Performs the minimum operation on the samples of a signal.

Functions

NppStatus nppsMinGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMin.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMin_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMin, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector min method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMin, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector min method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pMin, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector min method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pMin, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit integer vector min method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinIndxGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMinIndx.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMinIndx_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMin, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector min index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinIndx_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMin, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector min index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinIndx_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pMin, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector min index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinIndx_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pMin, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector min index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinAbsGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMinAbs.

Supported data types include NPP_16S, NPP_32S.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMinAbs_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMinAbs, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector min absolute method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinAbs_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMinAbs, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector min absolute method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinAbsIndxGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMinAbsIndx.

Supported data types include NPP_16S, NPP_32S.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMinAbsIndx_16s_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMinAbs, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit integer vector min absolute index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinAbsIndx_32s_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMinAbs, int *pIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector min absolute index method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Mean

Mean

Performs the mean operation on the samples of a signal.

Functions

NppStatus nppsMeanGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMean.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMean_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pMean, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector mean method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMean_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pMean, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit double vector mean method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMean_16s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMean, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit short vector mean with integer scaling method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMean_32s_Sfs_Ctx(const Npp32s *pSrc, size_t nLength, Npp32s *pMean, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit integer vector mean with integer scaling method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal StdDev

Standard Deviation

Calculates the standard deviation for the samples of a signal.

Functions

NppStatus nppsStdDevGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsStdDev.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsStdDev_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pStdDev, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector standard deviation method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsStdDev_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pStdDev, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector standard deviation method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsStdDev_16s32s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp32s *pStdDev, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit float vector standard deviation method (return value is 32-bit)

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsStdDev_16s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pStdDev, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit float vector standard deviation method (return value is also 16-bit)

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Mean And StdDev

Mean And Standard Deviation

Performs the mean and calculates the standard deviation for the samples of a signal.

Functions

NppStatus nppsMeanStdDevGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for nppsMeanStdDev.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMeanStdDev_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pMean, Npp32f *pStdDev, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector mean and standard deviation method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMeanStdDev_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pMean, Npp64f *pStdDev, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector mean and standard deviation method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMeanStdDev_16s32s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp32s *pMean, Npp32s *pStdDev, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit float vector mean and standard deviation method (return values are 32-bit)

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMeanStdDev_16s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp16s *pMean, Npp16s *pStdDev, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit float vector mean and standard deviation method (return values are also 16-bit)

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal MinMax

Minimum Maximum

Performs the maximum and the minimum operation on the samples of a signal.

Functions

NppStatus nppsMinMaxGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsMinMax.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32U, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMinMax_Ctx(NppDataType eSrcDstType, const void *pSrc, size_t nLength, void *pMin, void *pMax, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Vector min and max method Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32U, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMaxIndxGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsMinMaxIndx_8u.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32U, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsMinMaxIndx_Ctx(NppDataType eSrcDstType, const void *pSrc, size_t nLength, void *pMin, int *pMinIndx, void *pMax, int *pMaxIndx, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Vector min and max with indices method Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Norms

Signal Norm Inf

Infinity Norm

Performs the infinity norm on the samples of a signal.

Functions

NppStatus nppsNormInfGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNorm_Inf.

Supported data types include NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNorm_Inf_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector C norm method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_Inf_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector C norm method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormInfGetBufferSize_16s32f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNorm_Inf_16s32f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNorm_Inf_16s32f_Ctx(const Npp16s *pSrc, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector C norm method, return value is 32-bit float.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_Inf_16s32s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp32s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector C norm method, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Norm L1

L1 Norm

Performs the L1 norm on the samples of a signal.

Functions

NppStatus nppsNormL1GetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNorm_L1.

Supported data types include NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNorm_L1_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector L1 norm method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L1_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector L1 norm method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L1_16s32f_Ctx(const Npp16s *pSrc, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector L1 norm method, return value is 32-bit float.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L1_16s32s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp32s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector L1 norm method, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L1_16s64s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp64s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector L1 norm method, return value is 64-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Norm L2

L2 Norm

Performs the L2 norm on the samples of a signal.

Functions

NppStatus nppsNormL2GetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNorm_L2.

Supported data types include NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNorm_L2_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float vector L2 norm method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L2_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float vector L2 norm method

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L2_16s32f_Ctx(const Npp16s *pSrc, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector L2 norm method, return value is 32-bit float.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L2_16s32s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp32s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector L2 norm method, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNorm_L2Sqr_16s64s_Sfs_Ctx(const Npp16s *pSrc, size_t nLength, Npp64s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer vector L2 Square norm method, return value is 64-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Norm Inf NormDiff

Infinity Norm Diff

Performs the infinity norm on the samples of two input signals’ difference.

Functions

NppStatus nppsNormDiffInfGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNormDiff_Inf.

Supported data types include NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNormDiff_Inf_32f_Ctx(const Npp32f *pSrc1, const Npp32f *pSrc2, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float C norm method on two vectors’ difference

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_Inf_64f_Ctx(const Npp64f *pSrc1, const Npp64f *pSrc2, size_t nLength, Npp64f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float C norm method on two vectors’ difference

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_Inf_16s32f_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer C norm method on two vectors’ difference, return value is 32-bit float.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_Inf_16s32s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp32s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer C norm method on two vectors’ difference, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Norm L1 NormDiff

L1 Norm Diff

Performs the L1 norm on the samples of two input signals’ difference.

Functions

NppStatus nppsNormDiffL1GetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNormDiff_L1.

Supported data types include NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNormDiff_L1_32f_Ctx(const Npp32f *pSrc1, const Npp32f *pSrc2, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float L1 norm method on two vectors’ difference

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L1_64f_Ctx(const Npp64f *pSrc1, const Npp64f *pSrc2, size_t nLength, Npp64f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float L1 norm method on two vectors’ difference

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L1_16s32f_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer L1 norm method on two vectors’ difference, return value is 32-bit float.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L1_16s32s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp32s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer L1 norm method on two vectors’ difference, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L1_16s64s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp64s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer L1 norm method on two vectors’ difference, return value is 64-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Norm L2 NormDiff

L2 Norm Diff

Performs the L2 norm on the samples of two input signals’ difference.

Functions

NppStatus nppsNormDiffL2GetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsNormDiff_L2.

Supported data types include NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsNormDiff_L2_32f_Ctx(const Npp32f *pSrc1, const Npp32f *pSrc2, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit float L2 norm method on two vectors’ difference

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L2_64f_Ctx(const Npp64f *pSrc1, const Npp64f *pSrc2, size_t nLength, Npp64f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit float L2 norm method on two vectors’ difference

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L2_16s32f_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp32f *pNorm, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer L2 norm method on two vectors’ difference, return value is 32-bit float.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L2_16s32s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp32s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer L2 norm method on two vectors’ difference, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormDiff_L2Sqr_16s64s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, size_t nLength, Npp64s *pNorm, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Integer L2 Square norm method on two vectors’ difference, return value is eDstType.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Dot Product

Dot Product

Performs the dot product operation on the samples of two input signals.

Functions

NppStatus nppsDotProdGetBufferSize_Ctx(NppDataType eDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsDotProd.

Supported data types include NPP_16S, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsDotProd_Ctx(NppDataType eSrcType, NppDataType eDstType, const void *pSrc1, const void *pSrc2, size_t nLength, void *pDp, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

dot product method, return value is eDstType.

Supported source data types include NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDotProd_Sfs_Ctx(NppDataType eSrcType, NppDataType eDstType, const void *pSrc1, const void *pSrc2, size_t nLength, void *pDp, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Integer dot product method, return value is eDstType.

Supported source data types include NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDotProdGetBufferSize_16s32s32s_Sfs_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsDotProd_16s32s32s_Sfs.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsDotProd_16s32s32s_Sfs_Ctx(const Npp16s *pSrc1, const Npp32s *pSrc2, size_t nLength, Npp32s *pDp, int nScaleFactor, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer and 32-bit signed integer dot product method, return value is 32-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Count In Range

Count In Range

Calculates the number of elements from specified range in the samples of a signal.

Functions

NppStatus nppsCountInRangeGetBufferSize_32s_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsCountInRange_32s.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsCountInRange_32s_Ctx(const Npp32s *pSrc, size_t nLength, int *pCounts, Npp32s nLowerBound, Npp32s nUpperBound, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Count Zero Crossings

Count Zero Crossings

Calculates the number of zero crossings in a signal.

Functions

NppStatus nppsZeroCrossingGetBufferSize_16s32f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsZeroCrossing_16s32f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsZeroCrossing_16s32f_Ctx(const Npp16s *pSrc, size_t nLength, Npp32f *pValZC, NppsZCType tZCType, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer zero crossing method, return value is 32-bit floating point.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZeroCrossingGetBufferSize_32f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsZeroCrossing_32f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsZeroCrossing_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pValZC, NppsZCType tZCType, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit floating-point zero crossing method, return value is 32-bit floating point.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Maximum Error

MaximumError

Primitives for computing the maximum error between two signals. Given two signals \(pSrc1\) and \(pSrc2\) both with length \(N\), the maximum error is defined as the largest absolute difference between the corresponding elements of two signals.

If the signal is in complex format, the absolute value of the complex number is used.

Functions

NppStatus nppsMaximumError_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, size_t nLength, Npp64f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Maximum error method.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaximumErrorGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsMaximumError.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

Signal Average Error

AverageError

Primitives for computing the Average error between two signals. Given two signals \(pSrc1\) and \(pSrc2\) both with length \(N\), the average error is defined as

\[Average Error = \frac{1}{N}\sum_{n=0}^{N-1}\left|pSrc1(n) - pSrc2(n)\right|\]

If the signal is in complex format, the absolute value of the complex number is used.

Functions

NppStatus nppsAverageError_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, size_t nLength, Npp64f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

Average error method.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAverageErrorGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsAverageError.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

Signal Maximum Relative Error

MaximumRelativeError

Primitives for computing the MaximumRelative error between two signals. Given two signals \(pSrc1\) and \(pSrc2\) both with length \(N\), the maximum relative error is defined as

\[MaximumRelativeError = max{\frac{\left|pSrc1(n) - pSrc2(n)\right|}{max(\left|pSrc1(n)\right|, \left|pSrc2(n)\right|)}}\]

Functions

NppStatus nppsMaximumRelativeError_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, size_t nLength, Npp64f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

MaximumRelative error method.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMaximumRelativeErrorGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsMaximumRelativeError.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS

Signal Average Relative Error

AverageRelativeError

Primitives for computing the AverageRelative error between two signals. Given two signals \(pSrc1\) and \(pSrc2\) both with length \(N\), the average relative error is defined as

\[AverageRelativeError = \frac{1}{N}\sum_{n=0}^{N-1}\frac{\left|pSrc1(n) - pSrc2(n)\right|}{max(\left|pSrc1(n)\right|, \left|pSrc2(n)\right|)}\]

Functions

NppStatus nppsAverageRelativeError_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, size_t nLength, Npp64f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

AverageRelative error method.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAverageRelativeErrorGetBufferSize_Ctx(NppDataType eSrcDstType, size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device-buffer size (in bytes) for nppsAverageRelativeError.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

Parameters
Returns

NPP_SUCCESS