Resample a new spectrum with the desired number of points.
a Spectrum instance
the output spectrum size