I have an EEG recording of duration $2\text{s}$ with sampling rate $f_s=200 \,\text{Hz}$ and, as a mathematician, wish to familiarize myself with some of the standard terminology in signal processing. I've computed the DFT, it's magnitude squared, and the power spectral density using the periodogram.
First, the DFT, where $x$ is my signal of length $N=2*200=400$, and $f_s=200$:
Xf = np.fft.rfft(x)
f = np.fft.rfftfreq(N)*fs
Question 1: What term is used to denote the magnitude of $X_f$ itself, i.e., $|X_f|$? Is it the amplitude spectrum, energy spectrum, or something different?
I then plotted the magnitude-squared of my DFT, along with the power spectral density obtained using the periodogram
fig, ax = plt.subplots(2)
ax[0].plot(f,abs(Xf)**2)
f,Pxx=periodogram(x,fs,nfft=len(x))
ax[1].plot(f,Pxx)
ax[1].set_xlabel('frequency (Hz)')
plt.show()
Below is the resulting plot.
I determined that the scaling difference equals $f_s/2N$ so that $$P_{xx}\frac{f_s}{2N}=|X_f|^2$$ In terms of units I suppose this makes sense to me since I understand $P_{xx}$ has units of $\text{V}^2/\text{Hz}$ and $|X_f|^2$ has units of $\text{V}^2$.
Question 2: Does the frequency scaling factor $f_s/2N$ have a particular name and what is its significance?