functionconstructor
create a 1D-Spline object
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,:] | data | data to be fitted: [x,y,w] (w is optional weight) | |
| Real | s | 0 | smoothing factor (s>0) |
| Integer | k | 3 | degree of spline (should be odd) |
| Boolean | periodic | false | set true to generate periodic spline curve |
| Real[2] | x_lim | {ApproxSpline.Utilities.vmin(data[:, 1]), ApproxSpline.Utilities.vmax(data[:, 1])} | boundaries of interpolation interval (ignored in case of periodic splines) |
| Real[:] | t | fill(0, 0) | array of knot positions (if given, a least square spline is generated) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Type | spl | 1-D spline data structure |