SNIP_BaseCalculateHalfWidthInPointsLocallyRoundUp 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.BaselineEstimationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static int CalculateHalfWidthInPointsLocallyRoundUp(
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
Int32The maximum half width (left or right) over all points.
See Also