Function

vDSP_vswsum(_:_:_:_:_:_:)

Calculates the single-precision sliding window sum of a vector using specified stride.

Declaration

func vDSP_vswsum(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length, _ __P: vDSP_Length)

Parameters

__A

Single-precision real input vector.

__IA

Address stride for A.

__C

Single-precision real output vector.

__IC

Address stride for C.

__vDSP_N

Number of output points.

__vDSP_P

Length of window.

Discussion

Writes the sliding window sum of P consecutive elements of vector A to vector C, for each of N possible starting positions of the P-element window in vector A.

See Also

Single-Vector Sliding-Window Summing

static func slidingWindowSum<U>(U, usingWindowLength: Int) -> [Double]

Returns the double-precision sliding window sum of a vector.

static func slidingWindowSum<U>(U, usingWindowLength: Int) -> [Float]

Returns the single-precision sliding window sum of a vector.

static func slidingWindowSum<U, V>(U, usingWindowLength: Int, result: inout V)

Calculates the double-precision sliding window sum of a vector.

static func slidingWindowSum<U, V>(U, usingWindowLength: Int, result: inout V)

Calculates the single-precision sliding window sum of a vector.

func vDSP_vswsumD(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Double>, vDSP_Stride, vDSP_Length, vDSP_Length)

Calculates the double-precision sliding window sum of a vector using specified stride.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software