BSpline1DcreateInterpBSpline Method |
Creates an interpolating B-spline and optionally enforces sorted data or equally spaced knots.
Namespace: Altaxo.Calc.InterpolationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxprotected static BSpline1D createInterpBSpline(
IReadOnlyList<double> x,
IReadOnlyList<double> y,
int degree,
bool areDataSortedByX = false,
bool createEquallySpacedKnots = false
)
Parameters
- x IReadOnlyListDouble
- The x coordinates of the samples.
- y IReadOnlyListDouble
- The y coordinates of the samples.
- degree Int32
- The spline degree.
- areDataSortedByX Boolean (Optional)
- True to treat the data as sorted by x.
- createEquallySpacedKnots Boolean (Optional)
- True to force equally spaced knots.
Return Value
BSpline1DA configured
BSpline1D instance.
Exceptions| Exception | Condition |
|---|
| ArgumentException | Thrown when the data lengths are invalid for the requested degree. |
See Also