Click or drag to resize

NeonCalibrationGetIntensitySum Method

Gets the intensity sum. This is the fitness function. The higher the return value, the better the Nist peaks fit to the measured peaks.

Namespace: Altaxo.Science.Spectroscopy.Raman
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public double GetIntensitySum(
	((double , double ) NistLeft, (double , double ) NistRight, (double , double ) MeasLeft, (double , double ) MeasRight) ele,
	double[] x_nm,
	double[] y,
	IEnumerable<(double WL, double Intensity)> nistPeaks
)

Parameters

ele  ValueTupleValueTupleDouble, Double, ValueTupleDouble, Double, ValueTupleDouble, Double, ValueTupleDouble, Double
The element to test. This is a combination of the Nist peaks to the left and to the right, and the measured peaks to the left and to the right.
x_nm  Double
X-values of the preprocessed spectrum (has be in nanometer).
y  Double
Y-Values of the preprocessed spectrum.
nistPeaks  IEnumerableValueTupleDouble, Double
Enumeration of NIST peaks (position and relative intensity).

Return Value

Double
The sum of the y-values of the measured spectrum, sampled at (Nist positions converted to measured positions).
See Also