# Linear Interpolation Functions

No overview available.

## Topics

### Vector-to-Vector Linear Interpolation

`static func linearInterpolate<T, U>(T, U, using: Double) -> [Double]`

Returns the linear interpolation between the supplied double-precision vectors.

`static func linearInterpolate<T, U>(T, U, using: Float) -> [Float]`

Returns the linear interpolation between the supplied single-precision vectors.

`static func linearInterpolate<T, U, V>(T, U, using: Double, result: inout V)`

Calculates the linear interpolation between the supplied double-precision vectors.

`static func linearInterpolate<T, U, V>(T, U, using: Float, result: inout V)`

Calculates the linear interpolation between the supplied single-precision vectors.

### Single-Vector Linear Interpolation

The functions in this group calculate the linear interpolation between neighboring elements.

Use Linear Interpolation to Construct New Data Points

Fill the gaps in arrays of numerical data using linear interpolation.

`static func linearInterpolate<T, U>(elementsOf: T, using: U) -> [Double]`

Returns the interpolation between the neighboring elements of a double-precision vector.

`static func linearInterpolate<T, U>(elementsOf: T, using: U) -> [Float]`

Returns the interpolation between the neighboring elements of a single-precision vector.

`static func linearInterpolate<T, U, V>(elementsOf: T, using: U, result: inout V)`

Calculates the interpolation between the neighboring elements of a double-precision vector.

`static func linearInterpolate<T, U, V>(elementsOf: T, using: U, result: inout V)`

Calculates the interpolation between the neighboring elements of a single-precision vector.

`func vDSP_vlint(UnsafePointer<Float>, UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length, vDSP_Length)`

Calculates the interpolation between the neighboring elements of a single-precision vector using the specified stride.

`func vDSP_vlintD(UnsafePointer<Double>, UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Double>, vDSP_Stride, vDSP_Length, vDSP_Length)`

Calculates the interpolation between the neighboring elements of a double-precision vector using the specified stride.