avoid copy:
SplineSpectrum::SplineSpectrum(const std::vector<double>& mz, const std::vector<double>& intensity)