Function

vDSP_vswsumD(_:_:_:_:_:_:)

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

Declaration

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

Parameters

__A

Double-precision real input vector.

__IA

Address stride for A.

__C

Double-precision real output vector.

__IC

Address stride for C.

__N

Number of output points.

__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_vswsum(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length, vDSP_Length)

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