Click or drag to resize

SSProbBaseProbabilityThatXIsNoise Method

Approximation for the probability that the value x belongs to the noise level.

Namespace: Altaxo.Science.Spectroscopy.BaselineEstimation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
protected static double ProbabilityThatXIsNoise(
	double x,
	double sigma,
	int numberOfAddedPoints
)

Parameters

x  Double
The x value.
sigma  Double
The sigma of the noise.
numberOfAddedPoints  Int32
The parameter x can represent a single value or a sum of consecutive values. This parameter is the number of values that were added up. Provide 1 if x is a single value.

Return Value

Double
An approximation of the complementary error function.
Remarks
x must be positive (this is not validated). This function is an approximation for Erfc(x/(sigma*sqrt(2))).
See Also