Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Triangular function

From Wikipedia, the free encyclopedia
(Redirected fromTent function)
Not to be confused withTrigonometric functions orSchwarz triangle function.
Tent function, often used in signal processing
Exemplary triangular function

Atriangular function (also known as atriangle function,hat function, ortent function) is a function whose graph takes the shape of a triangle. Often this is anisosceles triangle of height 1 and base 2 in which case it is referred to asthe triangular function. Triangular functions are useful insignal processing andcommunication systems engineering as representations of idealized signals, and the triangular function specifically as anintegral transform kernel function from which more realistic signals can be derived, for example inkernel density estimation. It also has applications inpulse-code modulation as a pulse shape for transmittingdigital signals and as amatched filter for receiving the signals. It is also used to define thetriangular window sometimes called theBartlett window.

Definitions

[edit]

The most common definition is as a piecewise function:

tri(x)=Λ(x) =def max(1|x|,0)={1|x|,|x|<1;0otherwise.{\displaystyle {\begin{aligned}\operatorname {tri} (x)=\Lambda (x)\ &{\overset {\underset {\text{def}}{}}{=}}\ \max {\big (}1-|x|,0{\big )}\\&={\begin{cases}1-|x|,&|x|<1;\\0&{\text{otherwise}}.\\\end{cases}}\end{aligned}}}

Equivalently, it may be defined as theconvolution of two identical unitrectangular functions:

tri(x)=rect(x)rect(x)=rect(xτ)rect(τ)dτ.{\displaystyle {\begin{aligned}\operatorname {tri} (x)&=\operatorname {rect} (x)*\operatorname {rect} (x)\\&=\int _{-\infty }^{\infty }\operatorname {rect} (x-\tau )\cdot \operatorname {rect} (\tau )\,d\tau .\\\end{aligned}}}

The triangular function can also be represented as the product of the rectangular andabsolute value functions:

tri(x)=rect(x/2)(1|x|).{\displaystyle \operatorname {tri} (x)=\operatorname {rect} (x/2){\big (}1-|x|{\big )}.}
Alternative triangle function

Note that some authors instead define the triangle function to have a base of width 1 instead of width 2:

tri(2x)=Λ(2x) =def max(12|x|,0)={12|x|,|x|<12;0otherwise.{\displaystyle {\begin{aligned}\operatorname {tri} (2x)=\Lambda (2x)\ &{\overset {\underset {\text{def}}{}}{=}}\ \max {\big (}1-2|x|,0{\big )}\\&={\begin{cases}1-2|x|,&|x|<{\tfrac {1}{2}};\\0&{\text{otherwise}}.\\\end{cases}}\end{aligned}}}

In its most general form a triangular function is any linearB-spline:[1]

trij(x)={(xxj1)/(xjxj1),xj1x<xj;(xj+1x)/(xj+1xj),xjx<xj+1;0otherwise.{\displaystyle \operatorname {tri} _{j}(x)={\begin{cases}(x-x_{j-1})/(x_{j}-x_{j-1}),&x_{j-1}\leq x<x_{j};\\(x_{j+1}-x)/(x_{j+1}-x_{j}),&x_{j}\leq x<x_{j+1};\\0&{\text{otherwise}}.\end{cases}}}

Whereas the definition at the top is a special case

Λ(x)=trij(x),{\displaystyle \Lambda (x)=\operatorname {tri} _{j}(x),}

wherexj1=1{\displaystyle x_{j-1}=-1},xj=0{\displaystyle x_{j}=0}, andxj+1=1{\displaystyle x_{j+1}=1}.

A linear B-spline is the same as a continuouspiecewise linear functionf(x){\displaystyle f(x)}, and this general triangle function is useful to formally definef(x){\displaystyle f(x)} as

f(x)=jyjtrij(x),{\displaystyle f(x)=\sum _{j}y_{j}\cdot \operatorname {tri} _{j}(x),}

wherexj<xj+1{\displaystyle x_{j}<x_{j+1}} for all integerj{\displaystyle j}.The piecewise linear function passes through every point expressed as coordinates withordered pair(xj,yj){\displaystyle (x_{j},y_{j})}, that is,

f(xj)=yj{\displaystyle f(x_{j})=y_{j}}.

Scaling

[edit]

For any parametera0{\displaystyle a\neq 0}:

tri(ta)=(1a)rect(ta)(1a)rect(ta)=1|a|rect(τa)rect(tτa)dτ={1|t/a|,|t|<|a|;0otherwise.{\displaystyle {\begin{aligned}\operatorname {tri} \left({\tfrac {t}{a}}\right)&=\left({\tfrac {1}{\sqrt {a}}}\right)\operatorname {rect} \left({\tfrac {t}{a}}\right)*\left({\tfrac {1}{\sqrt {a}}}\right)\operatorname {rect} \left({\tfrac {t}{a}}\right)=\int _{-\infty }^{\infty }{\tfrac {1}{|a|}}\operatorname {rect} \left({\tfrac {\tau }{a}}\right)\cdot \operatorname {rect} \left({\tfrac {t-\tau }{a}}\right)\,d\tau \\&={\begin{cases}1-|t/a|,&|t|<|a|;\\0&{\text{otherwise}}.\end{cases}}\end{aligned}}}

Fourier transform

[edit]

The transform is easily determined using theconvolution property of Fourier transforms and theFourier transform of the rectangular function:

F{tri(t)}=F{rect(t)rect(t)}=F{rect(t)}F{rect(t)}=F{rect(t)}2=sinc2(f),{\displaystyle {\begin{aligned}{\mathcal {F}}\{\operatorname {tri} (t)\}&={\mathcal {F}}\{\operatorname {rect} (t)*\operatorname {rect} (t)\}\\&={\mathcal {F}}\{\operatorname {rect} (t)\}\cdot {\mathcal {F}}\{\operatorname {rect} (t)\}\\&={\mathcal {F}}\{\operatorname {rect} (t)\}^{2}\\&=\mathrm {sinc} ^{2}(f),\end{aligned}}}

wheresinc(x)=sin(πx)/(πx){\displaystyle \operatorname {sinc} (x)=\sin(\pi x)/(\pi x)} is thenormalized sinc function.

For the general form, we have:

F{tri(ta)}=F{1arect(ta)1arect(ta)}=1a F{rect(ta)}F{rect(ta)}=1a F{rect(ta)}2=1a a2 sinc2(af)=a sinc2(af).{\displaystyle {\begin{aligned}{\mathcal {F}}\{\operatorname {tri} \left({\tfrac {t}{a}}\right)\}&={\mathcal {F}}\{{\tfrac {1}{\sqrt {a}}}\operatorname {rect} \left({\tfrac {t}{a}}\right)*{\tfrac {1}{\sqrt {a}}}\operatorname {rect} \left({\tfrac {t}{a}}\right)\}\\&={\tfrac {1}{a}}\ {\mathcal {F}}\{\operatorname {rect} \left({\tfrac {t}{a}}\right)\}\cdot {\mathcal {F}}\{\operatorname {rect} \left({\tfrac {t}{a}}\right)\}\\&={\tfrac {1}{a}}\ {\mathcal {F}}\{\operatorname {rect} \left({\tfrac {t}{a}}\right)\}^{2}\\&={\tfrac {1}{a}}\ {a}^{2}\ \mathrm {sinc} ^{2}(a\cdot f)={a}\ \mathrm {sinc} ^{2}(a\cdot f).\end{aligned}}}

See also

[edit]

References

[edit]
  1. ^"Basic properties of splines and B-splines"(PDF).INF-MAT5340 Lecture Notes. p. 38.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Triangular_function&oldid=1271942863"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp