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

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

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

## Declaration

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

## 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:)-8137c.md)
- [vDSP.ThresholdRule](accelerate/vdsp/thresholdrule.md)
