For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
linear_filter
def 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: