NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.7.1.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Mean And Standard Deviation

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

Functions

NppStatus nppsMeanStdDevGetBufferSize_32f_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device scratch buffer size (in bytes) for nppsMeanStdDev_32f. More...
 
NppStatus nppsMeanStdDevGetBufferSize_32f (int nLength, int *hpBufferSize)
 
NppStatus nppsMeanStdDevGetBufferSize_64f_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device scratch buffer size (in bytes) for nppsMeanStdDev_64f. More...
 
NppStatus nppsMeanStdDevGetBufferSize_64f (int nLength, int *hpBufferSize)
 
NppStatus nppsMeanStdDevGetBufferSize_16s32s_Sfs_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device scratch buffer size (in bytes) for nppsMeanStdDev_16s32s_Sfs. More...
 
NppStatus nppsMeanStdDevGetBufferSize_16s32s_Sfs (int nLength, int *hpBufferSize)
 
NppStatus nppsMeanStdDevGetBufferSize_16s_Sfs_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device scratch buffer size (in bytes) for nppsMeanStdDev_16s_Sfs. More...
 
NppStatus nppsMeanStdDevGetBufferSize_16s_Sfs (int nLength, int *hpBufferSize)
 
NppStatus nppsMeanStdDev_32f_Ctx (const Npp32f *pSrc, int nLength, Npp32f *pMean, Npp32f *pStdDev, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
 32-bit float vector mean and standard deviation method More...
 
NppStatus nppsMeanStdDev_32f (const Npp32f *pSrc, int nLength, Npp32f *pMean, Npp32f *pStdDev, Npp8u *pDeviceBuffer)
 
NppStatus nppsMeanStdDev_64f_Ctx (const Npp64f *pSrc, int nLength, Npp64f *pMean, Npp64f *pStdDev, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
 64-bit float vector mean and standard deviation method More...
 
NppStatus nppsMeanStdDev_64f (const Npp64f *pSrc, int nLength, Npp64f *pMean, Npp64f *pStdDev, Npp8u *pDeviceBuffer)
 
NppStatus nppsMeanStdDev_16s32s_Sfs_Ctx (const Npp16s *pSrc, int 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) More...
 
NppStatus nppsMeanStdDev_16s32s_Sfs (const Npp16s *pSrc, int nLength, Npp32s *pMean, Npp32s *pStdDev, int nScaleFactor, Npp8u *pDeviceBuffer)
 
NppStatus nppsMeanStdDev_16s_Sfs_Ctx (const Npp16s *pSrc, int 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) More...
 
NppStatus nppsMeanStdDev_16s_Sfs (const Npp16s *pSrc, int nLength, Npp16s *pMean, Npp16s *pStdDev, int nScaleFactor, Npp8u *pDeviceBuffer)
 

Detailed Description

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

Function Documentation

NppStatus nppsMeanStdDev_16s32s_Sfs ( const Npp16s pSrc,
int  nLength,
Npp32s pMean,
Npp32s pStdDev,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)
NppStatus nppsMeanStdDev_16s32s_Sfs_Ctx ( const Npp16s pSrc,
int  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
pSrcSource Signal Pointer.
nLengthSignal Length.
pMeanPointer to the output mean value.
pStdDevPointer to the output standard deviation value.
nScaleFactorInteger Result Scaling.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize_16s32s_Sfs to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsMeanStdDev_16s_Sfs ( const Npp16s pSrc,
int  nLength,
Npp16s pMean,
Npp16s pStdDev,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)
NppStatus nppsMeanStdDev_16s_Sfs_Ctx ( const Npp16s pSrc,
int  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
pSrcSource Signal Pointer.
nLengthSignal Length.
pMeanPointer to the output mean value.
pStdDevPointer to the output standard deviation value.
nScaleFactorInteger Result Scaling.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize_16s_Sfs to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsMeanStdDev_32f ( const Npp32f pSrc,
int  nLength,
Npp32f pMean,
Npp32f pStdDev,
Npp8u pDeviceBuffer 
)
NppStatus nppsMeanStdDev_32f_Ctx ( const Npp32f pSrc,
int  nLength,
Npp32f pMean,
Npp32f pStdDev,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

32-bit float vector mean and standard deviation method

Parameters
pSrcSource Signal Pointer.
nLengthSignal Length.
pMeanPointer to the output mean value.
pStdDevPointer to the output standard deviation value.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize_32f to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsMeanStdDev_64f ( const Npp64f pSrc,
int  nLength,
Npp64f pMean,
Npp64f pStdDev,
Npp8u pDeviceBuffer 
)
NppStatus nppsMeanStdDev_64f_Ctx ( const Npp64f pSrc,
int  nLength,
Npp64f pMean,
Npp64f pStdDev,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

64-bit float vector mean and standard deviation method

Parameters
pSrcSource Signal Pointer.
nLengthSignal Length.
pMeanPointer to the output mean value.
pStdDevPointer to the output standard deviation value.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsMeanStdDevGetBufferSize_64f to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsMeanStdDevGetBufferSize_16s32s_Sfs ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsMeanStdDevGetBufferSize_16s32s_Sfs_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device scratch buffer size (in bytes) for nppsMeanStdDev_16s32s_Sfs.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS
NppStatus nppsMeanStdDevGetBufferSize_16s_Sfs ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsMeanStdDevGetBufferSize_16s_Sfs_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device scratch buffer size (in bytes) for nppsMeanStdDev_16s_Sfs.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS
NppStatus nppsMeanStdDevGetBufferSize_32f ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsMeanStdDevGetBufferSize_32f_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device scratch buffer size (in bytes) for nppsMeanStdDev_32f.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS
NppStatus nppsMeanStdDevGetBufferSize_64f ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsMeanStdDevGetBufferSize_64f_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device scratch buffer size (in bytes) for nppsMeanStdDev_64f.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS

Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES