Function

vDSP_vthrscD(_:_:_:_:_:_:_:)

Calculates double-precision vector threshold with signed constant to the specified range.

Declaration

func vDSP_vthrscD(_ __A: UnsafePointer<Double>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Double>, _ __C: UnsafePointer<Double>, _ __D: UnsafeMutablePointer<Double>, _ __ID: vDSP_Stride, _ __N: vDSP_Length)

Discussion

This function is the same as vDSP_vthrsc(_:_:_:_:_:_:_:), except for the types of vectors A and D, and scalars *B and *C.

See Also

Threshold Operations

static func threshold<U>(U, to: Double, with: vDSP.ThresholdRule<Double>) -> [Double]

Returns the elements of the supplied double-precision vector after applying a specified thresholding rule.

static func threshold<U>(U, to: Float, with: vDSP.ThresholdRule<Float>) -> [Float]

Returns the elements of the supplied single-precision vector after applying a specified thresholding rule.

static func threshold<U, V>(U, to: Double, with: vDSP.ThresholdRule<Double>, result: inout V)

Calculates the elements of the supplied double-precision vector after applying a specified thresholding rule.

static func threshold<U, V>(U, to: Float, with: vDSP.ThresholdRule<Float>, result: inout V)

Calculates the elements of the supplied single-precision vector after applying a specified thresholding rule.

enum vDSP.ThresholdRule

Vector Threshold Rules.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software