hattufunktioiden
Hattufunktioiden, often translated as "hat functions" or "tent functions" in English, are triangular-shaped functions used in various fields of mathematics and engineering, particularly in signal processing and approximation theory. A standard hattufunktio, often denoted by $\Lambda(x)$, is defined as a piecewise linear function that starts at zero, rises linearly to a peak of one at $x=0$, and then falls linearly back to zero at $x=1$. The mathematical definition is typically:
$\Lambda(x) = \begin{cases} x+1 & \text{if } -1 \le x < 0 \\ 1-x & \text{if } 0 \le x \le 1 \\ 0
However, variations exist where the base width and peak location may differ. A more general form, $\Lambda_a(x)$,
Hattufunktioiden are fundamental building blocks in several applications. In signal processing, they are used as basis