Пример #1
0
 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());
 }
Пример #2
0
 public static string ToStringReal([NotNull] this ISpectrum spectrum, int index)
 {
     return(spectrum.Real(index).ToString());
 }
Пример #3
0
 /// <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));
 }