Function v DSP _hamm _window(_: _: _:)
Creates a single-precision Hamming window.
iOS 4.0+ macOS 10.4+ Mac Catalyst 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Parameters
Single-precision real output vector.
The desired window length.
flag to create only the first v DSP _HALF _WINDOW (n+1)/2 points, or zero for a full-size window. Discussion
and v DSP _hamm _window(_: _: _:) functions create a Hamming window vector, and write the result to v DSP _hamm _window D(_: _: _:)
, which can be multiplied by a vector using
C . v DSP _vmul
for (n=0; n < N; ++n)
C[n] = 0.54 - (0.46 * cos( 2 * pi * n / N ) );
The following code shows how to generate a Hamming window:
let n = vDSP_Length(1024)
var c = [Float](repeating: 0,
The following illustrates the values of the output vector,
c See Also Vector Generation with Window Functions
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