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

# threshold(_:to:with:)

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

## Declaration

```swift
static func threshold<U>(_ vector: U, to lowerBound: Double, with rule: vDSP.ThresholdRule<Double>) -> [Double] where U : AccelerateBuffer, U.Element == Double
```

## See Also

### Threshold Operations

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