Click or drag to resize

SNIP_BaseCalculateHalfWidthInPointsLocallyRoundDown Method

Given the half width in x-axis units, calculates the half width in points (to the left and right) for every point in x.

Namespace: Altaxo.Science.Spectroscopy.BaselineEstimation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static int CalculateHalfWidthInPointsLocallyRoundDown(
	ReadOnlySpan<double> x,
	double halfWidthInXUnits,
	(int , int )[] w
)

Parameters

x  ReadOnlySpanDouble
The array of x-values.
halfWidthInXUnits  Double
The half width in x-units.
w  ValueTupleInt32, Int32
On return, contains the half width in points for every point in x. The half width is given to the left and to the right of each point.

Return Value

Int32
The maximum half width (left or right) over all points.
See Also