RealFFTResultWrapperAddSpectra Method |
Addition of two spectra that where created as the result of two real fourier transformations.
Namespace: Altaxo.Calc.FourierAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void AddSpectra(
double[] spectrumA,
double[] spectrumB,
double[] result
)
Parameters
- spectrumA Double
- The first spectrum to add.
- spectrumB Double
- The second spectrum to add.
- result Double
- The resulting of the addition of the two spectras. May be identical to one of the parameters spectraA or spectraB. See remarks on how the data are organized in the array.
Remarks
The data in the nominator and denominator spectral array and in the resulting array are organized as follows.
a[0] is the real part of f=0 (for f=0 the imaginary part is always zero)
a[i] and a[length-i] are the real and imaginary part of the spectrum at frequency i, respectively.
If the length of a is even, then a[length/2] is the real part of the frequency length/2 (the imaginary part at this frequency is always zero).
See Also