SNIP_BaseCalculateHalfWidthInPointsLocallyRoundUp Method |
Given the half width in x-axis unit, the half width in points (to the left and right) is calculated for every point in array x.
Namespace: Altaxo.Science.Spectroscopy.BaselineEstimationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public 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 returns, contains the half width in points for every point in array x. The half width is given to the left and to the right of each point.
Return Value
Int32The maximal half width (left and right) of all points.
See Also