Boxcar function
Mathematical function resembling a boxcar

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 . The function is named after its graph's resemblance to a boxcar, a type of railroad car. The boxcar function can be expressed in terms of the uniform distribution as
where is the uniform distribution of
for the interval
and
is the Heaviside step function. As with most such discontinuous functions, there is a question of the value at the transition points, which are usually best chosen depending on the individual application.
When a boxcar function is selected as the impulse response of a filter, the result is a simple moving average filter, whose frequency response is a sinc-in-frequency, a type of low-pass filter.
Sources and credits
This article is adapted from the Wikipedia article “Boxcar function”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Boxcar function.svg by Qef, Public domain
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.