Implement method ToFile
Implement method Spectrum.Integrate