HOME

TheInfoList



OR:

A triangular function (also known as a triangle function, hat function, or tent function) is a function whose graph takes the shape of a triangle. Often this is an
isosceles triangle In geometry, an isosceles triangle () is a triangle that has two Edge (geometry), sides of equal length and two angles of equal measure. Sometimes it is specified as having ''exactly'' two sides of equal length, and sometimes as having ''at le ...
of height 1 and base 2 in which case it is referred to as ''the'' triangular function. Triangular functions are useful in
signal processing Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
and ''communication systems engineering'' as representations of idealized signals, and the triangular function specifically as an
integral transform In mathematics, an integral transform is a type of transform that maps a function from its original function space into another function space via integration, where some of the properties of the original function might be more easily charac ...
kernel function from which more realistic signals can be derived, for example in
kernel density estimation In statistics, kernel density estimation (KDE) is the application of kernel smoothing for probability density estimation, i.e., a non-parametric method to estimate the probability density function of a random variable based on '' kernels'' as ...
. It also has applications in
pulse-code modulation Pulse-code modulation (PCM) is a method used to digitally represent analog signals. It is the standard form of digital audio in computers, compact discs, digital telephony and other digital audio applications. In a PCM stream, the amplitud ...
as a pulse shape for transmitting
digital signal A digital signal is a signal that represents data as a sequence of discrete values; at any given time it can only take on, at most, one of a finite number of values. This contrasts with an analog signal, which represents continuous values; ...
s and as a
matched filter In signal processing, the output of the matched filter is given by correlating a known delayed signal, or ''template'', with an unknown signal to detect the presence of the template in the unknown signal. This is equivalent to convolving the unkn ...
for receiving the signals. It is also used to define the triangular window sometimes called the Bartlett window.


Definitions

The most common definition is as a piecewise function: : \begin \operatorname(x) = \Lambda(x) \ &\overset \ \max\big(1 - , x, , 0\big) \\ &= \begin 1 - , x, , & , x, < 1; \\ 0 & \text. \\ \end \end Equivalently, it may be defined as the
convolution In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
of two identical unit
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 ...
s: : \begin \operatorname(x) &= \operatorname(x) * \operatorname(x) \\ &= \int_^\infty \operatorname(x - \tau) \cdot \operatorname(\tau) \,d\tau. \\ \end The triangular function can also be represented as the product of the rectangular and
absolute value In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
functions: :\operatorname(x) = \operatorname(x/2) \big(1 - , x, \big). Note that some authors instead define the triangle function to have a base of width 1 instead of width 2: : \begin \operatorname(2x) = \Lambda(2x) \ & \overset \ \max\big(1 - 2, x, , 0\big) \\ &= \begin 1 - 2, x, , & , x, < \tfrac12; \\ 0 & \text. \\ \end \end In its most general form a triangular function is any linear
B-spline In numerical analysis, a B-spline (short for basis spline) is a type of Spline (mathematics), spline function designed to have minimal Support (mathematics), support (overlap) for a given Degree of a polynomial, degree, smoothness, and set of bre ...
: : \operatorname_j(x) = \begin (x - x_)/(x_j - x_), & x_ \le x < x_j; \\ (x_ - x)/(x_ - x_j), & x_j \le x < x_; \\ 0 & \text. \end Whereas the definition at the top is a special case :\Lambda(x) = \operatorname_j(x), where x_ = -1, x_j = 0, and x_ = 1. A linear B-spline is the same as a continuous
piecewise linear function In mathematics, a piecewise linear or segmented function is a real-valued function of a real variable, whose graph is composed of straight-line segments. Definition A piecewise linear function is a function defined on a (possibly unbounded) ...
f(x), and this general triangle function is useful to formally define f(x) as :f(x) = \sum_j y_j \cdot \operatorname_j(x), where x_j < x_ for all integer j. The piecewise linear function passes through every point expressed as coordinates with
ordered pair In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
(x_j, y_j), that is, :f(x_j) = y_j.


Scaling

For any parameter a \ne 0: :\begin \operatorname\left(\tfrac\right) &= \left(\tfrac\right) \operatorname\left(\tfrac\right)* \left(\tfrac\right) \operatorname\left(\tfrac\right) = \int_^\infty \tfrac \operatorname\left(\tfrac\right) \cdot \operatorname\left(\tfrac\right) \,d\tau \\ &= \begin 1 - , t/a, , & , t, < , a, ; \\ 0 & \text. \end \end


Fourier transform

The transform is easily determined using the convolution property of Fourier transforms and the Fourier transform of the rectangular function: :\begin \mathcal\ &= \mathcal\\\ &= \mathcal\\cdot \mathcal\\\ &= \mathcal\^2\\ &= \mathrm^2(f), \end where \operatorname(x) = \sin(\pi x) / (\pi x) is the normalized sinc function. For the general form, we have: \begin \mathcal\ &= \mathcal\\\ &= \tfrac \ \mathcal\\cdot \mathcal\\\ &= \tfrac \ \mathcal\^2\\ &= \tfrac \ ^2 \ \mathrm^2(a \cdot f) = \ \mathrm^2(a \cdot f). \end


See also

* Källén function, also known as triangle function * Tent map * Triangular distribution * Triangle wave, a piecewise linear periodic function *
Trigonometric functions In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in all ...


References

{{Reflist Special functions