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.

func vDSP_vintb(UnsafePointer<Float>, vDSP_Stride, UnsafePointer<Float>, vDSP_Stride, UnsafePointer<Float>, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

Calculates the linear interpolation between the supplied single-precision vectors using the specified stride.

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.