CurveBaseParametrize Method |
Curve length parametrization. Returns the accumulated "distances"
between the points (x(i),y(i)) and (x(i+1),y(i+1)) in t(i+1)
for i = lo ... hi. t(lo) = 0.0 always.
Namespace: Altaxo.Calc.InterpolationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public virtual void Parametrize(
IReadOnlyList<double> x,
IReadOnlyList<double> y,
IVector<double> t,
Parametrization parametrization
)
Parameters
- x IReadOnlyListDouble
- The vector of abscissa values.
- y IReadOnlyListDouble
- The vector of ordinate values.
- t IVectorDouble
- Output: the vector of "distances".
- parametrization Parametrization
- The parametrization rule to apply.
Remarks The way of parametrization is controlled by the parameter parametrization.
Parametrizes curve length using:
|dx| + |dy| if parametrization = Norm1
sqrt(dx^2+dy^2) if parametrization = Norm2
(dx^2+dy^2) if parametrization = SqrNorm2
Parametrization using Norm2 usually gives the best results.
See Also