---
title: vDSP.ThresholdRule
framework: accelerate
role: symbol
role_heading: Enumeration
path: accelerate/vdsp/thresholdrule
---

# vDSP.ThresholdRule

Constants that specify vector threshold rules.

## Declaration

```swift
enum ThresholdRule<T> where T : BinaryFloatingPoint
```

## Topics

### Threshold rules

- [vDSP.ThresholdRule.clampToThreshold](accelerate/vdsp/thresholdrule/clamptothreshold.md)
- [vDSP.ThresholdRule.signedConstant(_:)](accelerate/vdsp/thresholdrule/signedconstant(_:).md)
- [vDSP.ThresholdRule.zeroFill](accelerate/vdsp/thresholdrule/zerofill.md)

## 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)
- [threshold(_:to:with:result:)](accelerate/vdsp/threshold(_:to:with:result:)-8137c.md)
