Slip (vehicle dynamics): Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Sang'gre Habagat
m Reverted 1 edit by 122.179.40.129 (talk) identified as vandalism to last revision by AndrewDressel. (TW)
 
en>Addbot
m Bot: Migrating 1 interwiki links, now provided by Wikidata on d:q7540806
 
Line 1: Line 1:
Alyson is the name individuals use to call me and I think it seems fairly great when you say it. He functions as a bookkeeper. The favorite hobby for him and his kids is fashion and he'll be beginning some thing else alongside with it. Ohio is where her home is.<br><br>Check out my blog post: psychic readers ([http://checkmates.co.za/index.php?do=/profile-56347/info/ This Internet page])
In [[signal processing]], the '''overlap–add method (OA, OLA)''' is an efficient way to evaluate the discrete [[convolution]] of a very long signal <math>x[n]</math> with a [[finite impulse response]] (FIR) filter <math>h[n]</math>''':'''
 
:<math>
\begin{align}
y[n] = x[n] * h[n] \ \stackrel{\mathrm{def}}{=} \ \sum_{m=-\infty}^{\infty} h[m] \cdot x[n-m]
= \sum_{m=1}^{M} h[m] \cdot x[n-m],
\end{align}</math>
 
where ''h''[''m''] = 0 for ''m'' outside the region [1, ''M''].
 
The concept is to divide the problem into multiple convolutions of ''h''[''n''] with short segments of <math>x[n]</math>''':'''
 
:<math>x_k[n]  \ \stackrel{\mathrm{def}}{=}
\begin{cases}
x[n+kL] & n=1,2,\ldots,L\\
0 & \textrm{otherwise},
\end{cases}
</math>
 
where ''L'' is an arbitrary segment length.  Then''':'''
 
:<math>x[n] = \sum_{k} x_k[n-kL],\,</math>
 
and ''y''[''n''] can be written as a sum of short convolutions''':'''
 
:<math>
\begin{align}
y[n] = \left(\sum_{k} x_k[n-kL]\right) * h[n] &= \sum_{k} \left(x_k[n-kL]* h[n]\right)\\
&= \sum_{k} y_k[n-kL],
\end{align}
</math>
 
where &nbsp;<math>y_k[n] \ \stackrel{\mathrm{def}}{=} \ x_k[n]*h[n]\,</math>&nbsp; is zero outside the region [1,&nbsp;''L''&nbsp;+&nbsp;''M''&nbsp;&minus;&nbsp;1]. &nbsp;And for any parameter &nbsp;<math>N\ge L+M-1,\,</math>&nbsp; it is equivalent to the <math>N\,</math>-point [[circular convolution]] of <math>x_k[n]\,</math> with <math>h[n]\,</math>&nbsp; in the region&nbsp;[1,&nbsp;''N''].
 
The advantage is that the [[circular convolution]] can be computed very efficiently as follows, according to the [[Discrete_Fourier_transform#Circular_convolution_theorem_and_cross-correlation_theorem|circular convolution theorem]]''':'''
 
{{NumBlk|:|<math>y_k[n] = \textrm{IFFT}\left(\textrm{FFT}\left(x_k[n]\right)\cdot\textrm{FFT}\left(h[n]\right)\right)</math>|{{EquationRef|Eq.1}}}}
 
where FFT and IFFT refer to the [[fast Fourier transform]] and inverse
fast Fourier transform, respectively, evaluated over <math>N</math> discrete
points.
 
== The algorithm ==
 
[[Image:Depiction of overlap-add algorithm.png|frame|none|Figure 1: the overlap–add method]]
 
Fig. 1 sketches the idea of the overlap–add method. The
signal <math>x[n]</math> is first partitioned into non-overlapping sequences,
then the [[discrete Fourier transform]]s of the sequences <math>y_k[n]</math>
are evaluated by multiplying the FFT of <math>x_k[n]</math> with the FFT of
<math>h[n]</math>. After recovering of <math>y_k[n]</math> by inverse FFT, the resulting
output signal is reconstructed by overlapping and adding the <math>y_k[n]</math>
as shown in the figure. The overlap arises from the fact that a linear
convolution is always longer than the original sequences. In the early days of development of the fast Fourier transform, <math>L</math> was often  chosen to be a power of 2 for efficiency, but further development has revealed efficient transforms for larger prime factorizations of L, reducing computational sensitivity to this parameter. A [[pseudocode]] of the algorithm is the
following:
 
    '''Algorithm 1''' (''OA for linear convolution'')
    Evaluate the best value of N and L
    H = FFT(h,N)      <span style="color:green;">(''zero-padded FFT'')</span>
    i = 1
    '''while''' i <= Nx  <span style="color:green;">(''Nx: the last index of x[n]'')</span>
        il = min(i+L-1,Nx)
        yt = IFFT( FFT(x(i:il),N) * H, N)
        k  = min(i+N-1,Nx)
        y(i:k) = y(i:k) + yt(1:k-i+1)    <span style="color:green;">(''add the overlapped output blocks'')</span>
        i = i+L
    '''end'''
 
== Circular convolution with the overlap–add method ==
 
When sequence ''x''[''n''] is periodic, and ''N''<sub>''x''</sub> is the period, then ''y''[''n''] is also periodic, with the same period. &nbsp;To compute one period of y[n], Algorithm 1 can first be used to convolve ''h''[''n''] with just one period of ''x''[''n'']. &nbsp;In the region ''M'' ≤ ''n'' ≤ ''N''<sub>''x''</sub>, &nbsp;the resultant ''y''[''n''] sequence is correct. &nbsp;And if the next ''M''&nbsp;&minus;&nbsp;1 values are added to the first ''M''&nbsp;&minus;&nbsp;1 values, then the region 1 ≤ ''n'' ≤ ''N''<sub>''x''</sub> will represent the desired convolution.  The modified pseudocode is''':'''
 
    '''Algorithm 2''' (''OA for circular convolution'')
    Evaluate Algorithm 1
    y(1:M-1) = y(1:M-1) + y(Nx+1:Nx+M-1)
    y = y(1:Nx)
    '''end'''
 
== Cost of the overlap-add method ==
 
The cost of the convolution can be associated to the number of complex
multiplications involved in the operation. The major computational
effort is due to the FFT operation, which for a radix-2 algorithm
applied to a signal of length <math>N</math> roughly calls for <math>C=\frac{N}{2}\log_2 N</math>
complex multiplications. It turns out that the number of complex multiplications
of the overlap-add method are:
 
:<math>C_{OA}=\left\lceil \frac{N_x}{N-M+1}\right\rceil
N\left(\log_2 N+1\right)\,</math>
 
<math>C_{OA}</math> accounts for the FFT+filter multiplication+IFFT operation.
 
The additional cost of the <math>M_L</math> sections involved in the circular
version of the overlap–add method is usually very small and can be
neglected for the sake of simplicity. The best value of <math>N</math>
can be found by numerical search of the minimum of <math>C_{OA}\left(N\right)=C_{OA}\left(2^m \right)</math>
by spanning the integer <math>m</math> in the range <math>\log_2\left(M\right)\le m\le\log_2 \left(N_x\right)</math>.
Being <math>N</math> a power of two, the FFTs of the overlap–add method
are computed efficiently. Once evaluated the value of <math>N</math> it
turns out that the optimal partitioning of <math>x[n]</math> has <math>L=N-M+1</math>.
For comparison, the cost of the standard circular convolution of <math>x[n]</math>
and <math>h[n]</math> is:
 
:<math>C_S=N_x\left(\log_2 N_x+1\right)\,</math>
 
Hence the cost of the overlap–add method scales almost as <math>O\left(N_x\log_2 N\right)</math>
while the cost of the standard circular convolution method is almost
<math>O\left(N_x\log_2 N_x \right)</math>. However such functions accounts
only for the cost of the complex multiplications, regardless of the
other operations involved in the algorithm. A direct measure of the
computational time required by the algorithms is of much interest.
Fig. 2 shows the ratio of the measured time to evaluate
a standard circular convolution using &nbsp;{{EquationNote|Eq.1}} with
the time elapsed by the same convolution using the overlap–add method
in the form of Alg 2, vs. the sequence and the filter length. Both algorithms have been implemented under [[Matlab]]. The
bold line represent the boundary of the region where the overlap–add
method is faster (ratio>1) than the standard circular convolution.
Note that the overlap–add method in the tested cases can be three
times faster than the standard method.
 
[[Image:gain oa method.png|frame|none|Figure 2: Ratio between the time required by &nbsp;{{EquationNote|Eq.1}} and the time required by the overlap–add Alg. 2 to evaluate
a complex circular convolution, vs the sequence length <math>N_x</math> and
the filter length <math>M</math>.]]
 
== See also ==
 
*[[Overlap–save method]]
 
== References ==
 
*{{Cite book
| author=Rabiner, Lawrence R.; Gold, Bernard
| authorlink=
| coauthors=
| title=Theory and application of digital signal processing
| year=1975
| publisher=Prentice-Hall
| location=Englewood Cliffs, N.J.
| isbn=0-13-914101-4
| pages=63–67
}}
*{{Cite book
| author=Oppenheim, Alan V.; Schafer, Ronald W.
| authorlink=
| coauthors=
| title=Digital signal processing
| year=1975
| publisher=Prentice-Hall
| location=Englewood Cliffs, N.J. 
| isbn=0-13-214635-5
| pages=
}}
*{{Cite book
| author=Hayes, M. Horace
| authorlink=
| coauthors=
| title = Digital Signal Processing
| series = Schaum's Outline Series
| year=1999
| publisher=McGraw Hill
| location=New York 
| isbn=0-07-027389-8
| pages=
}}
 
== External links ==
 
{{DEFAULTSORT:Overlap-Add Method}}
[[Category:Signal processing]]
[[Category:Transforms]]
[[Category:Fourier analysis]]
[[Category:Numerical analysis]]

Latest revision as of 03:08, 24 March 2013

In signal processing, the overlap–add method (OA, OLA) is an efficient way to evaluate the discrete convolution of a very long signal with a finite impulse response (FIR) filter :

where h[m] = 0 for m outside the region [1, M].

The concept is to divide the problem into multiple convolutions of h[n] with short segments of :

where L is an arbitrary segment length. Then:

and y[n] can be written as a sum of short convolutions:

where    is zero outside the region [1, L + M − 1].  And for any parameter    it is equivalent to the -point circular convolution of with   in the region [1, N].

The advantage is that the circular convolution can be computed very efficiently as follows, according to the circular convolution theorem:

Template:NumBlk

where FFT and IFFT refer to the fast Fourier transform and inverse fast Fourier transform, respectively, evaluated over discrete points.

The algorithm

Figure 1: the overlap–add method

Fig. 1 sketches the idea of the overlap–add method. The signal is first partitioned into non-overlapping sequences, then the discrete Fourier transforms of the sequences are evaluated by multiplying the FFT of with the FFT of . After recovering of by inverse FFT, the resulting output signal is reconstructed by overlapping and adding the as shown in the figure. The overlap arises from the fact that a linear convolution is always longer than the original sequences. In the early days of development of the fast Fourier transform, was often chosen to be a power of 2 for efficiency, but further development has revealed efficient transforms for larger prime factorizations of L, reducing computational sensitivity to this parameter. A pseudocode of the algorithm is the following:

   Algorithm 1 (OA for linear convolution)
   Evaluate the best value of N and L
   H = FFT(h,N)       (zero-padded FFT)
   i = 1
   while i <= Nx  (Nx: the last index of x[n])
       il = min(i+L-1,Nx)
       yt = IFFT( FFT(x(i:il),N) * H, N)
       k  = min(i+N-1,Nx)
       y(i:k) = y(i:k) + yt(1:k-i+1)    (add the overlapped output blocks)
       i = i+L
   end

Circular convolution with the overlap–add method

When sequence x[n] is periodic, and Nx is the period, then y[n] is also periodic, with the same period.  To compute one period of y[n], Algorithm 1 can first be used to convolve h[n] with just one period of x[n].  In the region MnNx,  the resultant y[n] sequence is correct.  And if the next M − 1 values are added to the first M − 1 values, then the region 1 ≤ nNx will represent the desired convolution. The modified pseudocode is:

   Algorithm 2 (OA for circular convolution)
   Evaluate Algorithm 1
   y(1:M-1) = y(1:M-1) + y(Nx+1:Nx+M-1)
   y = y(1:Nx)
   end

Cost of the overlap-add method

The cost of the convolution can be associated to the number of complex multiplications involved in the operation. The major computational effort is due to the FFT operation, which for a radix-2 algorithm applied to a signal of length roughly calls for complex multiplications. It turns out that the number of complex multiplications of the overlap-add method are:

accounts for the FFT+filter multiplication+IFFT operation.

The additional cost of the sections involved in the circular version of the overlap–add method is usually very small and can be neglected for the sake of simplicity. The best value of can be found by numerical search of the minimum of by spanning the integer in the range . Being a power of two, the FFTs of the overlap–add method are computed efficiently. Once evaluated the value of it turns out that the optimal partitioning of has . For comparison, the cost of the standard circular convolution of and is:

Hence the cost of the overlap–add method scales almost as while the cost of the standard circular convolution method is almost . However such functions accounts only for the cost of the complex multiplications, regardless of the other operations involved in the algorithm. A direct measure of the computational time required by the algorithms is of much interest. Fig. 2 shows the ratio of the measured time to evaluate a standard circular convolution using  Template:EquationNote with the time elapsed by the same convolution using the overlap–add method in the form of Alg 2, vs. the sequence and the filter length. Both algorithms have been implemented under Matlab. The bold line represent the boundary of the region where the overlap–add method is faster (ratio>1) than the standard circular convolution. Note that the overlap–add method in the tested cases can be three times faster than the standard method.

Figure 2: Ratio between the time required by  Template:EquationNote and the time required by the overlap–add Alg. 2 to evaluate a complex circular convolution, vs the sequence length and the filter length .

See also

References

  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534

External links