Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit signed short signal normalize, scale, then clamp to saturated value.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pDst">Destination signal pointer.</param>
/// <param name="vSub">value subtracted from each signal element before division</param>
/// <param name="vDiv">divisor of post-subtracted signal element dividend</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
16-bit signed short signal normalize, scale, then clamp to saturated value.
16 - bit signed short signal normalize scale then clamp to saturated value .
public static void Normalize(this CudaDeviceVariable<short> pSrc, CudaDeviceVariable<short> pDst, short vSub, int vDiv, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.NormalizeSignal.nppsNormalize_16s_Sfs(pSrc.DevicePointer, pDst.DevicePointer, pSrc.Size, vSub, vDiv, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsNormalize_16s_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void Normalize ( this CudaDeviceVariable < short > pSrc , CudaDeviceVariable < short > pDst , short vSub , int vDiv , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . NormalizeSignal . nppsNormalize_16s_Sfs ( pSrc . DevicePointer , pDst . DevicePointer , pSrc . Size , vSub , vDiv , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
16-bit signed short signal normalize, scale, then clamp to saturated value.
16 - bit signed short signal normalize scale then clamp to saturated value .
CudaDeviceVariable<short>
this
pDst
CudaDeviceVariable<short>
Destination signal pointer.
Destination signal pointer .
vSub
short
value subtracted from each signal element before division
value subtracted from each signal element before division
vDiv
int
divisor of post-subtracted signal element dividend
divisor of post - subtracted signal element dividend
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrc
Source signal pointer.
Source signal pointer .