---
title: "formWindow(usingSequence:result:isHalfWindow:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/formwindow(usingsequence:result:ishalfwindow:)-6cmve"
---

# formWindow(usingSequence:result:isHalfWindow:)

Populates a double-precision vector with a specified window.

## Declaration

```swift
static func formWindow<V>(usingSequence sequence: vDSP.WindowSequence, result: inout V, isHalfWindow: Bool) where V : AccelerateMutableBuffer, V.Element == Double
```

## Parameters

- `sequence`: The window sequence to use for generation.
- `result`: The destination vector that receives the result.
- `isHalfWindow`: A Boolean value that specifies whether the function generates half of the number of elements.

## Discussion

Discussion Use this function to populate a vector with values of a specified window sequence. The following code shows how to generate a single-precision Blackman window: var c = [Double](repeating: 0,                  count: 1024)

vDSP.formWindow(usingSequence: .blackman,                 result: &c,                 isHalfWindow: false) The following figure illustrates the values of the output vector, c:

## See Also

### Type Methods

- [absolute(_:)](accelerate/vdsp/absolute(_:)-9c3ge.md)
- [absolute(_:)](accelerate/vdsp/absolute(_:)-5ehc1.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-9x5jn.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-1wu9x.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-657bd.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-4pigo.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-9mv1a.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-2ftxc.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-53nh9.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-7swvf.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-2531u.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-2w0o9.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-338hl.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-3vzwi.md)
- [add(_:to:count:result:)](accelerate/vdsp/add(_:to:count:result:)-g1dk.md)
