Function

vDSP_zcoher(_:_:_:_:_:)

Computes the coherence function of two single-precision vectors.

Declaration

func vDSP_zcoher(_ __A: UnsafePointer<Float>, _ __B: UnsafePointer<Float>, _ __C: UnsafePointer<DSPSplitComplex>, _ __D: UnsafeMutablePointer<Float>, _ __N: vDSP_Length)

Parameters

__A

Single-precision real input vector, with a stride of 1.

__B

Single-precision real input vector, with a stride of 1.

__C

Single-precision complex input vector, with a stride of 1.

__D

Single-precision real output vector, with a stride of 1.

__N

The number of elements to process.

Discussion

This function computes the coherence function of two signals. The inputs are the signals' autospectra, real vectors A and B, and their cross-spectrum, complex vector C. Results are left in D.

(The autospectra and the cross-spectrum can be obtained from vDSP_zaspec(_:_:_:) and vDSP_zcspec(_:_:_:_:) respectively.)

mathematical formula

See Also

Vector-to-Vector Coherence Function Computation