::tclinterp::approximation¶
Commands¶
bezier¶
Finds values of Bezier function at x points.
bezier -n value -a value -b value -x list -y list
Parameters
-a value:Start of the interval.
-b value:End of interval.
-n value:Order of Bezier function, must be zero or more.
-x list:List of x values.
-y list:List of y control points values of size n+1.
Return value
yi values of Bezier function at x points
cubicBetaSpline1d¶
Evaluates a cubic beta spline approximant.
cubicBetaSpline1d -beta1 value -beta2 value -t|x list -y list -ti|xi list
Parameters
-beta1 value:The skew or bias parameter, beta1 = 1 for no skew or bias.
-beta2 value:The tension parameter, beta2 = 0 for no tension.
-t list:List of independent variable (t) values, -x is an alias.
-ti list:List of independent variable interpolation (ti) values, -xi is an alias.
-y list:List of dependent variable (y) values.
Return value
list of approximation values yi at ti points.
cubicBSpline1d¶
Evaluates a cubic B spline approximant.
cubicBSpline1d -t|x list -y list -ti|xi list
Parameters
-t list:List of independent variable (t) values, -x is an alias.
-ti list:List of independent variable interpolation (ti) values, -xi is an alias.
-y list:List of dependent variable (y) values.
Return value
list of approximation values yi at ti points.
genBezier¶
Finds values of general Bezier function at specified t points.
genBezier -n value -x list -y list -t list
Parameters
-n value:Order of Bezier function, must be zero or more.
-t list:List of t points at which we want to evaluate Bezier function, best results are obtained within the interval [0,1]
-x list:List of x control points values of size n+1.
-y list:List of y control points values of size n+1.
Return value
dict with lists of xi and yi points at specified t points
Copyright (c) George Yashin