Mojo function
linear_filter
linear_filter(x: SIMD[float32, 1]) -> SIMD[float32, 1]
This is a tent filter.
f(x) = 1 + x, x < 0 f(x) = 1 - x, 0 <= x < 1 f(x) = 0, x >= 1
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!