Signal Classes and Operations: Energy, Power, Symmetry and Elementary Signals
A data logger hands you two files. One holds the voltage of a strain-gauge amplifier sampled at for an hour; the other holds a single pulse from a piezo sensor when a hammer hits a beam. Before you filter or transform either record you should be able to say what kind of signal it is, because that decides which number describes its size (rms power or total energy), which transform applies, and which processing makes sense. This lesson gives you the classification an engineer uses, the elementary signals every later lesson is built from, and the operations (shift, reversal, scaling) that turn one into another. The mathematical treatment is in Signals and Signal Operations; here we attach units and code.
The classes
| Distinction | One side | Other side | Why it matters |
|---|---|---|---|
| time axis | continuous time | discrete time , sampled at | Laplace vs z-transform, analog vs digital filters |
| amplitude | analog (any value) | digital (quantised to codes) | quantisation noise (Quantisation) |
| repetition | periodic, | aperiodic | Fourier series lines vs a continuous spectrum |
| size | energy signal, | power signal, | which figure to quote, which spectrum (ESD or PSD) |
| predictability | deterministic | random (noise) | exact transforms vs statistical estimates (Spectral Estimation) |
| symmetry | even, | odd, | real or imaginary Fourier transforms |
Energy and power. Engineers measure the size of a signal as the energy or power it would deliver into a resistor ("normalised"), so a voltage signal has energy in and power in :
and in discrete time , . Into a real load , divide by to get joules or watts. A pulse has finite energy and zero average power; a sine, a DC level or stationary noise has finite power and infinite energy. Some signals are neither (a ramp ).
Periodicity in discrete time is stricter. A sampled cosine with (radians per sample) repeats only if is a rational number; the period is then samples (in lowest terms), covering cycles of the analog sine. A tone sampled at gives : the samples repeat every 20 samples, which span 3 cycles. never repeats at all, because is irrational.
Even and odd parts. Every signal splits into and , and the energies add: .
Elementary signals
| Signal | Continuous time | Discrete time | Used for |
|---|---|---|---|
| unit impulse | (area 1, a limit) | at , else 0 (an ordinary sequence) | impulse response, sampling |
| unit step | switching on, step response | ||
| ramp | tracking tests | ||
| exponential | , | first-order responses, IIR filters | |
| sinusoid | frequency response | ||
| complex exponential | eigenfunctions of LTI systems | ||
| rectangular pulse, sinc | , | windows, ideal filters | spectra of pulses |
Sampling an elementary continuous signal gives its discrete cousin: sampled every is with , which is why a first-order RC becomes a one-pole digital filter. The discrete impulse is not a sampled Dirac delta: is simply the sequence . The complex exponentials lesson explains why and matter so much.
Operations on the time axis
For (or ): shift first by , then scale by , or rewrite as , so the shift seen on the graph is . A negative reverses time. In discrete time, keeps every second sample and throws the others away (decimation, Multirate), and is undefined at odd until you decide what to put there (interpolation). Amplitude operations () act on values only.
Worked example: power of a sensor signal, energy of a pulse
Given: (a) an accelerometer amplifier output , driving a cable termination; (b) a piezo pulse with , into the same .
Find: the class of each, its rms value or energy, and the power or energy in the load.
Solve: (a) is a power signal. The DC and the sine are orthogonal over a period, so their powers add: , , and into the load . (b) is an energy signal: , so in the load; its average power over all time is zero.
Check: the units work (, ), and the code below gets the same values from samples.
import numpy as np
fs = 100e3 # 100 kSa/s, plenty for a 1 kHz tone
t = np.arange(int(0.1 * fs)) / fs # 0.1 s = exactly 100 periods of 1 kHz
v_a = 0.5 + 2.0 * np.sin(2 * np.pi * 1e3 * t)
P_a = np.mean(v_a**2) # normalised power, V^2
print(f"(a) power {P_a:.4f} V^2, rms {np.sqrt(P_a):.4f} V, into 50 Ohm {1e3 * P_a / 50:.2f} mW = {10 * np.log10(P_a / 50 / 1e-3):.2f} dBm")
tau = 2e-3
t_b = np.arange(int(0.05 * fs)) / fs # 25 tau: the tail is negligible
v_b = 5.0 * np.exp(-t_b / tau)
E_b = np.sum(v_b**2) / fs # Riemann sum of the integral, V^2 s
print(f"(b) energy {E_b:.5f} V^2 s (exact {25 * tau / 2:.5f}), into 50 Ohm {1e3 * E_b / 50:.4f} mJ")
print(f" average power over 1 s: {E_b / 1.0:.4f} V^2, over 100 s: {E_b / 100:.6f} V^2 -> 0")(a) power 2.2500 V^2, rms 1.5000 V, into 50 Ohm 45.00 mW = 16.53 dBm
(b) energy 0.02513 V^2 s (exact 0.02500), into 50 Ohm 0.5025 mJ
average power over 1 s: 0.0251 V^2, over 100 s: 0.000251 V^2 -> 0
The sampled energy is high: a left Riemann sum of with step equals , and . Sampling faster, or the trapezoidal rule (np.trapezoid), shrinks the error. Discrete sums approximate continuous integrals only as well as the sampling allows.
Periodicity and symmetry in code
import numpy as np
from fractions import Fraction
# Is a sampled tone periodic, and with what period?
fs = 8000
for f0 in (1000, 1200, 1234.5):
r = Fraction(f0).limit_denominator(100000) / fs
print(f"f0 = {f0} Hz at fs = {fs}: f0/fs = {r.numerator}/{r.denominator} -> period {r.denominator} samples, {r.numerator} cycles")
# Even/odd split of x[n] = 0.8^n u[n] and the energy check E = Ee + Eo
n = np.arange(-60, 61)
x = np.where(n >= 0, 0.8 ** np.clip(n, 0, None), 0.0)
xr = x[::-1] # x[-n] (n runs symmetrically)
xe, xo = (x + xr) / 2, (x - xr) / 2
print(f"E = {np.sum(x**2):.4f} (exact 1/(1 - 0.64) = {1 / 0.36:.4f}), Ee = {np.sum(xe**2):.4f}, Eo = {np.sum(xo**2):.4f}")
print("xe[-2..2] =", np.round(xe[58:63], 3), " xo[-2..2] =", np.round(xo[58:63], 3))f0 = 1000 Hz at fs = 8000: f0/fs = 1/8 -> period 8 samples, 1 cycles
f0 = 1200 Hz at fs = 8000: f0/fs = 3/20 -> period 20 samples, 3 cycles
f0 = 1234.5 Hz at fs = 8000: f0/fs = 2469/16000 -> period 16000 samples, 2469 cycles
E = 2.7778 (exact 1/(1 - 0.64) = 2.7778), Ee = 1.8889, Eo = 0.8889
xe[-2..2] = [0.32 0.4 1. 0.4 0.32] xo[-2..2] = [-0.32 -0.4 0. 0.4 0.32]
A tone is "periodic" only with a 2-second period: for practical purposes treat it as not periodic in any analysis record you would take. This matters again for leakage.
Guided lab: rms of a sine with an offset
Hand calculation. A function generator set to a sine of amplitude () with a offset has , so a true-rms meter on DC+AC should read , and on AC coupling .
Simulation. Change v_a in the first program to 0.5 + 1.0 * np.sin(...) and confirm ; then sample only (10.5 periods) and see the estimate wander because the record no longer holds whole periods.
What you would measure. With the generator's output set to high-impedance load mode and a true-rms DMM: about (DC+AC) and (AC), each within roughly (generator amplitude accuracy plus the meter's AC specification at ; see True RMS). An averaging meter on AC also reads for a pure sine but would be wrong for other shapes. A scope's rms measurement over a non-integer number of periods differs by a few tenths of a percent, the same effect as in the simulation.
Hazards and safe setup. Only the generator and battery- or USB-powered instruments, signals below ; no mains-connected circuit is probed. Keep the scope ground clip on the generator's ground.
Pitfalls
- Quoting a pulse by its "power": it has energy; quote joules (or ) and, if needed, its peak.
- Assuming a sampled sine is periodic in the record because the analog sine is.
- Reading as "shift by 4": the shift is .
- Treating like a Dirac delta (it has value 1, not infinite height).
- Forgetting that dBm needs a load resistance (here ) to turn into watts.
Practice
- What is the rms value of ?
- Is periodic? With what period?
- Find the energy of .
- Sketch and say where the step is.
Answer
- , .
- : periodic with samples (7 cycles).
- .
- is 1 for and 0 for : a step down at (a reversed step shifted right by 2).
Test yourself
A stationary noise voltage recorded for an hour is best described as
- an energy signal
- a power signal
- neither
- periodic
has period
- 6.67 samples
- 20 samples
- it is not periodic
- 3 samples
The rms value of V is
- 2.5 V
- 1.5 V
- 1.41 V
- 2.06 V
is compressed by 3 and shifted right by
- 6
- 3
- 2
- 18