<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP/correlate(_:withKernel:result:)-1lb82",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4vDSPO9correlate_10withKernel6resultyx_q_q0_ztAA0A6BufferRzAaGR_AA0a7MutableG0R0_Sd7ElementRtzSdAIRt_SdAIRt0_r1_lFZ"
  },
  "title" : "correlate(_:withKernel:result:)"
}
-->

# correlate(_:withKernel:result:)

Calculates the correlation of a double-precision signal vector and a filter vector.

```
static func correlate<T, U, V>(_ vector: T, withKernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double
```

## Parameters

`vector`

The input signal vector.

`kernel`

The filter vector.

`result`

On output, the correlation result.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)