Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit float vector mean and standard deviation method (return values are also 16-bit)
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pMean">Pointer to the output mean value.</param>
/// <param name="pStdDev">Pointer to the output standard deviation value.</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. </param>
16-bit float vector mean and standard deviation method (return values are also 16-bit)
16 - bit float vector mean and standard deviation method ( return values are also 16 - bit )
public static void MeanStdDev(this CudaDeviceVariable<short> pSrc, CudaDeviceVariable<short> pMean, CudaDeviceVariable<short> pStdDev, CudaDeviceVariable<byte> pDeviceBuffer, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.MeanStdDev.nppsMeanStdDev_16s_Sfs(pSrc.DevicePointer, pSrc.Size, pMean.DevicePointer, pStdDev.DevicePointer, nScaleFactor, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsMeanStdDev_16s_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void MeanStdDev ( this CudaDeviceVariable < short > pSrc , CudaDeviceVariable < short > pMean , CudaDeviceVariable < short > pStdDev , CudaDeviceVariable < byte > pDeviceBuffer , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . MeanStdDev . nppsMeanStdDev_16s_Sfs ( pSrc . DevicePointer , pSrc . Size , pMean . DevicePointer , pStdDev . DevicePointer , nScaleFactor , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
16-bit float vector mean and standard deviation method (return values are also 16-bit)
16 - bit float vector mean and standard deviation method ( return values are also 16 - bit )
CudaDeviceVariable<short>
this
pMean
CudaDeviceVariable<short>
Pointer to the output mean value.
Pointer to the output mean value .
pStdDev
CudaDeviceVariable<short>
Pointer to the output standard deviation value.
Pointer to the output standard deviation value .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation.
Pointer to the required device memory allocation .
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrc
Source signal pointer.
Source signal pointer .