public static string ToStringComplex([NotNull] this ISpectrum spectrum, int index)
 {
     if (spectrum.HasImag())
     {
         return(spectrum.Real(index) + "\t" + spectrum.Imag(index));
     }
     return(spectrum.Real(index).ToString());
 }
 public static string ToStringReal([NotNull] this ISpectrum spectrum, int index)
 {
     return(spectrum.Real(index).ToString());
 }
 /// <summary>
 ///     Get the real part of the accumulated data at a specified index.
 /// </summary>
 /// <param name="index">The index of the data</param>
 /// <returns>The intensity at the input index</returns>
 public double Real(int index)
 {
     return(_spectrum.Real(index));
 }