Signal Energy and Power Calculations
Background
The energy of a signal within specific time limits is defined as:
$ E=\int_{t_1}^{t_2} |x(t)|^2\, dt $
The average power of a signal between specific time limits is defined as:
$ P=\frac{1}{t_2-t_1}\int_{t_1}^{t_2} |x(t)|^2\, dt $