portaikkifunktio
A portaikkifunktio, meaning "step function" in Finnish, is a function that is a finite linear combination of indicator functions of disjoint intervals. More formally, a function f is a step function if it can be written as:
f(x) = sum(c_i * I_{A_i}(x)) for i = 1 to n
where c_i are constants, I_{A_i}(x) is the indicator function of the set A_i, and the sets A_i
A common type of step function is the Heaviside step function, often denoted by H(x) or theta(x).
The graph of a step function consists of horizontal line segments at different heights. The transitions between
Step functions are important in various fields of mathematics and engineering. They are used in probability