HOME

TheInfoList



OR:

Top-hat filters are several real-space or
Fourier space In mathematics, physics, electronics, control systems engineering, and statistics, the frequency domain refers to the analysis of mathematical functions or signals with respect to frequency (and possibly phase), rather than time, as in time serie ...
filtering techniques. The name top-hat originates from the shape of the filter, which is a rectangle function, when viewed in the domain in which the filter is constructed.


Real space

In real-space the filter performs nearest-neighbour filtering, incorporating components from neighbouring y-function values. Despite its ease of implementation, its practical use is limited as the real-space representation of a top-hat filter is the
sinc In mathematics, physics and engineering, the sinc function ( ), denoted by , has two forms, normalized and unnormalized.. In mathematics, the historical unnormalized sinc function is defined for by \operatorname(x) = \frac. Alternatively, ...
function, which has the often undesirable effect of incorporating non-local frequencies.


Analogue implementations

Exact non-digital implementations are only theoretically possible. Top-hat filters can be constructed by chaining theoretical low-band and high-band filters. In practice, an approximate top-hat filter can be constructed in analogue hardware using approximate low-band and high-band filters.


Fourier space

In Fourier space, a top hat filter selects a band of signal of desired frequency by the specification of lower and upper bounding frequencies. Top-hat filters are particularly easy to implement digitally.


Related functions

The top hat function can be generated by differentiating a linear ramp function of width \epsilon. The limit of \epsilon then becomes the
Dirac delta function In mathematical analysis, the Dirac delta function (or distribution), also known as the unit impulse, is a generalized function on the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire real line ...
. Its real-space form is the same as the
moving average In statistics, a moving average (rolling average or running average or moving mean or rolling mean) is a calculation to analyze data points by creating a series of averages of different selections of the full data set. Variations include: #Simpl ...
, with the exception of not introducing a shift in the output function.


See also

*
Boxcar averager A boxcar averager, gated integrator or boxcar integrator is an electronic test instrument that integral, integrates the signal input voltage after a defined waiting time (trigger delay) over a specified period of time (gate width) and then average ...
*
Rectangular function The rectangular function (also known as the rectangle function, rect function, Pi function, Heaviside Pi function, gate function, unit pulse, or the normalized boxcar function) is defined as \operatorname\left(\frac\right) = \Pi\left(\frac\ri ...
*
Step function In mathematics, a function on the real numbers is called a step function if it can be written as a finite linear combination of indicator functions of intervals. Informally speaking, a step function is a piecewise constant function having on ...
*
Boxcar function 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 function is named after its graph's resemblance to a boxcar, a type of railroad ca ...


References

{{reflist Linear filters