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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – destination Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pSum – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsSumGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pSum – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsSumGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pSum – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsSumGetBufferSize to determine the minium number of bytes required.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pSum – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsSumGetBufferSize to determine the minium number of bytes required.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pSum – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsSumGetBufferSize to determine the minium number of bytes required.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pIndx – Pointer to the index value of the first maximum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pIndx – Pointer to the index value of the first maximum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pIndx – Pointer to the index value of the first maximum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMax – Pointer to the output result.
pIndx – Pointer to the index value of the first maximum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMaxAbs – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxAbsGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMaxAbs – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxAbsGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMaxAbs – Pointer to the output result.
pIndx – Pointer to the index value of the first maximum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxAbsIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMaxAbs – Pointer to the output result.
pIndx – Pointer to the index value of the first maximum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaxAbsIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pIndx – Pointer to the index value of the first minimum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pIndx – Pointer to the index value of the first minimum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pIndx – Pointer to the index value of the first minimum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the output result.
pIndx – Pointer to the index value of the first minimum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMinAbs – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinAbsGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMinAbs – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinAbsGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMinAbs – Pointer to the output result.
pIndx – Pointer to the index value of the first minimum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinAbsIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMinAbs – Pointer to the output result.
pIndx – Pointer to the index value of the first minimum element.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinAbsIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanGetBufferSize to determine the minium number of bytes required.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanGetBufferSize to determine the minium number of bytes required.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pStdDev – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pStdDev – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pStdDev – Pointer to the output result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pStdDev – Pointer to the output result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output output Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output mean value.
pStdDev – Pointer to the output standard deviation value.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output mean value.
pStdDev – Pointer to the output standard deviation value.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output mean value.
pStdDev – Pointer to the output standard deviation value.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMean – Pointer to the output mean value.
pStdDev – Pointer to the output standard deviation value.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the min output result.
pMax – Pointer to the max output result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinMaxGetBufferSize_8u to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
nLength – Signal Length.
pMin – Pointer to the min output result.
pMinIndx – Pointer to the index of the first min value.
pMax – Pointer to the max output result.
pMaxIndx – Pointer to the index of the first max value.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMinMaxIndxGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the L1 norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormL2SqrGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffInfGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output data type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the L1 norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer..
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL1GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pNorm – Pointer to the norm result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsNormDiffL2GetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eDstType – output Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcType – source Signal Data Type. Supported output data types include NPP_16S, NPP_64S, NPP_32F, NPP_64F.
eDstType – output data type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDp – Device memory pointer to the dot product result of type eDstType.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsDotProdGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcType – source Signal Data Type. Supported output data types include NPP_16S, NPP_32S.
eDstType – output data type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDp – Device memory pointer to the dot product result of type eDstType.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsDotProdGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDp – Pointer to the dot product result.
nScaleFactor – Integer Result Scaling.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsDotProdGetBufferSize_16s32s32s_Sfs to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pCounts – Pointer to the number of elements.
nLowerBound – Lower bound of the specified range.
nUpperBound – Upper bound of the specified range.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsCountInRangeGetBufferSize_32s to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pValZC – Pointer to the output result.
tZCType – Type of the zero crossing measure: nppZCR, nppZCXor or nppZCC.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsZeroCrossingGetBufferSize_16s32f to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pValZC – Pointer to the output result.
tZCType – Type of the zero crossing measure: nppZCR, nppZCXor or nppZCC.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsZeroCrossingGetBufferSize_32f to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the error result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaximumErrorGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the error result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsAverageErrorGetBufferSize to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the error result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMaximumRelativeErrorGetBufferSize_8u to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the error result.
pDeviceBuffer – Pointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsAverageRelativeErrorGetBufferSize_8u to determine the minium number of bytes required.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtx – Application Managed Stream Context.
- Returns
NPP_SUCCESS