Im working on plotting the power spectral density of a random time series measured. I know the target spectrum.The idea is check the measurement vis-a-vis the target spectrum. However, I get slightly different plots for segment lengths of 128 & 256, its noisy for higher segment lengths. For 128 its a closer match. For 256 its smooth, but there is a slight bulge in the spectrum at the top (when compared to the target).
Im not sure which one to go with to validate the measuring device. Please advise.
Edit : 1. Hand sketch of the look of the plot added for 256 point segment length. 2. For 128 point, its more or less an exact match.