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