![]() | ||
In mathematics, a boxcar function is any function which is zero over the entire real line except for a single interval where it is equal to a constant, A. The boxcar function can be expressed in terms of the uniform distribution as
where f(a,b;x) is the uniform distribution of x for the interval [a, b] and
When a boxcar function is selected as the impulse response of a filter, the result is a moving average filter.
The function is named after its resemblance to a boxcar, a type of railroad car.