---
title: "threshold(_:to:with:result:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/threshold(_:to:with:result:)-8137c"
---

# threshold(_:to:with:result:)

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

## Declaration

```swift
static func threshold<U, V>(_ vector: U, to lowerBound: Float, with rule: vDSP.ThresholdRule<Float>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
```

## See Also

### Threshold Operations

- [threshold(_:to:with:)](accelerate/vdsp/threshold(_:to:with:)-77g7l.md)
- [threshold(_:to:with:)](accelerate/vdsp/threshold(_:to:with:)-534ob.md)
- [threshold(_:to:with:result:)](accelerate/vdsp/threshold(_:to:with:result:)-45b58.md)
- [vDSP.ThresholdRule](accelerate/vdsp/thresholdrule.md)
