modelplotDataCurve1d

create data structs to be plotted in MATLAB

Parameters

TypeNameDefaultDescription
Integern20number of data points to plot
Stringfilename"curve1d.mat"name of MATLAB formated output file
Real[:,:]datadata to be fitted: [x,y,w] (w is optional weight)
Reals0smoothing factor (s>0)
Integerk3degree of spline (should be odd)
Booleanperiodicfalseset true to generate periodic spline curve
Real[2]x_lim{ApproxSpline.Utilities.vmin(data[:, 1]), ApproxSpline.Utilities.vmax(data[:, 1])}boundaries of interpolation interval
Real[:]tfill(0, 0)array of knot positions (if given, a least square spline is generated)

Components

TypeNameDefaultDescription
Realnknumber of knots