Salta al contenuto
Note per Studenti Continuous-Time and Discrete-Time Signals Report

Continuous-Time and Discrete-Time Signals

In questa pagina 5

Mathematical models for signals

Continuous-time signals

The independent variable is real: t∈Rt \in \mathbb{R}. We work on an interval [t1,t2]⊆[−∞,+∞][t_1, t_2] \subseteq [-\infty, +\infty], which may be closed, open, bounded or unbounded. Default: t1=−∞t_1 = -\infty, t2=+∞t_2 = +\infty, i.e. [t1,t2]=R[t_1, t_2] = \mathbb{R}.

A continuous-time signal is a function defined over a continuous interval:

x:[t1,t2]→R or C,t↦x(t).x : [t_1, t_2] \to \mathbb{R} \text{ or } \mathbb{C}, \qquad t \mapsto x(t).

Usually tt has the physical meaning of time, but in general it can be anything (for instance space).

Notation. {x(t)}:={x(t)∣−∞<t<+∞}\{x(t)\} := \{x(t) \mid -\infty < t < +\infty\} is the set of all values of xx. It is a shorthand to denote a trajectory: x(⋅):={x(t)}x(\cdot) := \{x(t)\}. The same notation is used for discrete-time signals.

Discrete-time signals

The independent variable is an integer: k∈Zk \in \mathbb{Z}, on a closed/open/bounded/unbounded discrete interval [k1,k2]⊆[−∞,+∞][k_1, k_2] \subseteq [-\infty, +\infty]. Default: k1=−∞k_1 = -\infty, k2=+∞k_2 = +\infty, i.e. [k1,k2]=Z[k_1, k_2] = \mathbb{Z}.

A discrete-time signal is a sequence defined over a discrete interval:

x:[k1,k2]→R or C,k↦x(k)=xk.x : [k_1, k_2] \to \mathbb{R} \text{ or } \mathbb{C}, \qquad k \mapsto x(k) = x_k.

(The sequence value is written x(k)x(k), or equivalently xkx_k or, in bracket notation, x[k]x[k].)

In the plot of the course the continuous-time signal is a curve (it may even have isolated points detached from the curve), while the discrete-time signal is drawn as vertical segments with a dot, called stems, at integer abscissae.

Notes.

  • For discrete-time signals only the domain is discrete; the codomain may be any subset of R\mathbb{R} or C\mathbb{C}.
  • Continuous-time signals are not necessarily continuous functions. A function is continuous, f∈C0(S)f \in \mathcal{C}^0(S), if and only if lim⁡t→t0f(t)=f(t0)\lim_{t \to t_0}f(t) = f(t_0) for all t0∈S⊆Rt_0 \in S \subseteq \mathbb{R}; a continuous-time signal can have jumps.

Representations of signals

  1. Analytic representation (explicit or implicit).
    • x(t)=3sin⁡t−t52x(t) = 3\sin t - \frac{t^5}{2} is explicit (although it is a bit controversial to say that "sin" is explicit).
    • x(k)={1if ∣k∣ is prime0otherwisex(k) = \begin{cases}1 & \text{if } |k| \text{ is prime} \\ 0 & \text{otherwise}\end{cases} is implicit: despite 00 and 11 being clearly the values taken by x(k)x(k), we do not have any formula to determine the sequence of primes.
  2. Graphic representation. For example a straight line through the origin, whose corresponding analytic representation is x(t)=tx(t) = t.
  3. Tabular representation. A table of pairs kk, x(k)x(k). For the table with values 0,1,0,1,00, 1, 0, 1, 0 at k=−2,−1,0,1,2k = -2, -1, 0, 1, 2 (and so on) the corresponding analytic representation is the sequence of odd numbers: {(k,x(k))∣x(k)=1 if k is odd; x(k)=0 otherwise}\{(k, x(k)) \mid x(k) = 1 \text{ if } k \text{ is odd}; \ x(k) = 0 \text{ otherwise}\}.

Temporal translation and inversion

Temporal translation. Assume T>0T > 0. The time-shift operator is

UT[{x(t)}]:={x(t−T)}.U_T\big[\{x(t)\}\big] := \{x(t - T)\}.

The graph of x(t−T)x(t - T) is the graph of x(t)x(t) moved to the right by TT: a feature located at t=0t = 0 in x(t)x(t) (for instance a peak) is located at t=Tt = T in UT[x(t)]U_T[x(t)].

Temporal inversion. The time-reversal operator is

R:{x(t)}↦{x(−t)}.R : \{x(t)\} \mapsto \{x(-t)\}.

The graph of x(−t)x(-t) is the mirror image of the graph of x(t)x(t) with respect to the vertical axis.

Area and mean value of a signal over an interval II

continuous time discrete time
interval I⊆RI \subseteq \mathbb{R}, t1=inf⁡(I)t_1 = \inf(I), t2=sup⁡(I)t_2 = \sup(I) I⊆ZI \subseteq \mathbb{Z}, k1=inf⁡(I)k_1 = \inf(I), k2=sup⁡(I)k_2 = \sup(I)
area AI[x]:=∫t1t2x(τ) dτ\mathcal{A}_I[x] := \displaystyle\int_{t_1}^{t_2}x(\tau)\,d\tau AI[x]:=∑n=k1k2x(n)\mathcal{A}_I[x] := \displaystyle\sum_{n = k_1}^{k_2}x(n)
size of II LI:=t2−t1L_I := t_2 - t_1 LI:=k2−k1+1L_I := k_2 - k_1 + 1
mean value mI[x]:=1LI∫t1t2x(τ) dτm_I[x] := \dfrac{1}{L_I}\displaystyle\int_{t_1}^{t_2}x(\tau)\,d\tau mI[x]:=1LI∑n=k1k2x(n)m_I[x] := \dfrac{1}{L_I}\displaystyle\sum_{n = k_1}^{k_2}x(n)

Notation: A[x]:=AI[x]\mathcal{A}[x] := \mathcal{A}_I[x] and m[x]:=mI[x]m[x] := m_I[x] if I=[−∞,+∞]I = [-\infty, +\infty].

Note: (t1,t2)(t_1, t_2) or (k1,k2)(k_1, k_2) may be equal to (−∞,+∞)(-\infty, +\infty). In such a case we talk about area or mean value over an infinite horizon.

Correlation

Suppose we want to measure the mutual dependence between two signals x1(t)x_1(t), x2(t)x_2(t) over the domain R\mathbb{R}.

Definition (cross-correlation). It is the function

rx1x2(t):=∫−∞+∞x1(t+τ) x2(τ)‾ dτ,r_{x_1x_2}(t) := \int_{-\infty}^{+\infty}x_1(t + \tau)\,\overline{x_2(\tau)}\,d\tau,

if the integral exists finite. For discrete-time signals:

rx1x2(k):=∑n=−∞+∞x1(k+n) x2(n)‾.r_{x_1x_2}(k) := \sum_{n = -\infty}^{+\infty}x_1(k + n)\,\overline{x_2(n)}.

We can also measure the correlation of a signal x(t)x(t) with respect to itself.

Definition (autocorrelation). It is the function rxx(t)r_{xx}(t) (the cross-correlation of xx with itself). Meaning: rxx(t)r_{xx}(t) measures the dependence of a signal x(t)x(t) over itself.

Exercise. Suppose y(t)=u(t+t0)y(t) = u(t + t_0). At home, show that ruy(t)=ruu(t−t0)r_{uy}(t) = r_{uu}(t - t_0) and ryy(t)=ruu(t)r_{yy}(t) = r_{uu}(t).

Energy and power of signals (which build on area, mean value and the quantity ∣x∣2|x|^2) are treated in Energy and Power of SignalsEnergy and average power of continuous- and discrete-time signals over finite and infinite horizons, finite-energy signals, mutual energy as a scalar product, and the Lebesgue spaces L2 and l2 of finite-energy signals.Energy and Power of Signals →; the symmetry and periodicity of signals in Symmetries of SignalsEven and odd signals, the even-odd decomposition and the orthogonality of the two parts (so that energy splits), plus real, purely imaginary, Hermitian and anti-Hermitian symmetries.Symmetries of Signals → and Periodic SignalsPeriodic continuous- and discrete-time signals, fundamental period, periodicity of sums, periodic repetition, bounded-support signals, and the energy and average power of periodic signals.Periodic Signals →.

Versione ripasso

  • Continuous-time signal: x:[t1,t2]→Rx : [t_1, t_2] \to \mathbb{R} or C\mathbb{C}, t↦x(t)t \mapsto x(t), t∈Rt \in \mathbb{R} (default domain R\mathbb{R}). Discrete-time signal: x:[k1,k2]→Rx : [k_1, k_2] \to \mathbb{R} or C\mathbb{C}, k↦x(k)=xkk \mapsto x(k) = x_k, k∈Zk \in \mathbb{Z} (default Z\mathbb{Z}); drawn as stems.
  • Only the domain of a discrete-time signal is discrete. A continuous-time signal need not be a continuous function.
  • Trajectory notation: x(⋅):={x(t)}x(\cdot) := \{x(t)\} (set of all values).
  • Representations: analytic (explicit, e.g. 3sin⁡t−t5/23\sin t - t^5/2; implicit, e.g. 11 if ∣k∣|k| is prime), graphic, tabular.
  • Time shift UT[{x(t)}]={x(t−T)}U_T[\{x(t)\}] = \{x(t - T)\}, T>0T > 0: moves the graph right by TT. Time reversal R:{x(t)}↦{x(−t)}R : \{x(t)\} \mapsto \{x(-t)\}: mirror about the vertical axis.
  • Area on II: ∫t1t2x(τ)dτ\int_{t_1}^{t_2}x(\tau)d\tau or ∑n=k1k2x(n)\sum_{n = k_1}^{k_2}x(n). Mean value: area divided by LIL_I, with LI=t2−t1L_I = t_2 - t_1 (continuous) and LI=k2−k1+1L_I = k_2 - k_1 + 1 (discrete: note the +1+1).
  • Cross-correlation: rx1x2(t)=∫−∞+∞x1(t+τ)x2(τ)‾dτr_{x_1x_2}(t) = \int_{-\infty}^{+\infty}x_1(t + \tau)\overline{x_2(\tau)}d\tau; discrete: ∑nx1(k+n)x2(n)‾\sum_nx_1(k + n)\overline{x_2(n)}. Autocorrelation rxxr_{xx}. For y(t)=u(t+t0)y(t) = u(t + t_0): ruy(t)=ruu(t−t0)r_{uy}(t) = r_{uu}(t - t_0), ryy=ruur_{yy} = r_{uu}.
  • Typical mistakes: shifting the wrong way (x(t−T)x(t - T) is a delay, to the right, for T>0T > 0); forgetting the conjugate on the second signal in the correlation; using k2−k1k_2 - k_1 instead of k2−k1+1k_2 - k_1 + 1 as the number of samples.

Teoria collegata