@@ -39,13 +39,13 @@ <h5 class='ruff'>Return value</h5><p class='ruff'>yi values of Bezier function a
39
39
< i > < font color =#4b5d50 > # -x - list of x values</ font > </ i >
40
40
< i > < font color =#4b5d50 > # -y - list of y control points values of size n+1</ font > </ i >
41
41
< i > < font color =#4b5d50 > # Returns: yi values of Bezier function at x points</ font > </ i >
42
- < b > < font color = #923B23 > set </ font > </ b > arguments [ argparse {
42
+ argparse {
43
43
{< font color =#463e11 > -n</ font > = < font color =#463e11 > -required</ font > }
44
44
{< font color =#463e11 > -a</ font > = < font color =#463e11 > -required</ font > }
45
45
{< font color =#463e11 > -b</ font > = < font color =#463e11 > -required</ font > }
46
46
{< font color =#463e11 > -x</ font > = < font color =#463e11 > -required</ font > }
47
47
{< font color =#463e11 > -y</ font > = < font color =#463e11 > -required</ font > }
48
- }]
48
+ }
49
49
< b > < font color =#923B23 > if</ font > </ b > {[< b > < font color =#923B23 > string</ font > </ b > is integer < font color =#463e11 > -strict</ font > < font color =#4A181B > $n</ font > ]==0} {
50
50
< b > < font color =#ca14ca > return</ font > </ b > < font color =#463e11 > -code</ font > error < font color =#035103 > "Order of Bezier curve -n '< font color =#4A181B > $</ font > n' must be of integer type"</ font >
51
51
} < b > < font color =#923B23 > elseif</ font > </ b > {< font color =#4A181B > $n</ font > <0} {
@@ -74,8 +74,8 @@ <h5 class='ruff'>Return value</h5><p class='ruff'>yi values of Bezier function a
74
74
< h5 class ='ruff '> Parameters</ h5 > < table class ='ruff_deflist '>
75
75
< tr > < td > < code > < font color =#463e11 > -beta1</ font > </ code > </ td > < td > The skew or bias parameter, beta1 = 1 for no skew or bias.</ td > </ tr >
76
76
< tr > < td > < code > < font color =#463e11 > -beta2</ font > </ code > </ td > < td > The tension parameter, beta2 = 0 for no tension.</ td > </ tr >
77
- < tr > < td > < code > < font color =#463e11 > -t</ font > </ code > </ td > < td > List of independent variable (t) values.</ td > </ tr >
78
- < tr > < td > < code > < font color =#463e11 > -ti</ font > </ code > </ td > < td > List of independent variable interpolation (ti) values.</ td > </ tr >
77
+ < tr > < td > < code > < font color =#463e11 > -t</ font > </ code > </ td > < td > List of independent variable (t) values, -x is an alias .</ td > </ tr >
78
+ < tr > < td > < code > < font color =#463e11 > -ti</ font > </ code > </ td > < td > List of independent variable interpolation (ti) values, -xi is an alias .</ td > </ tr >
79
79
< tr > < td > < code > < font color =#463e11 > -y</ font > </ code > </ td > < td > List of dependent variable (y) values.</ td > </ tr >
80
80
</ table >
81
81
< h5 class ='ruff '> Return value</ h5 > < p class ='ruff '> list of approximation values yi at ti points.</ p >
@@ -85,17 +85,17 @@ <h5 class='ruff'>Return value</h5><p class='ruff'>list of approximation values y
85
85
< i > < font color =#4b5d50 > # Evaluates a cubic beta spline approximant.</ font > </ i >
86
86
< i > < font color =#4b5d50 > # -beta1 - the skew or bias parameter, beta1 = 1 for no skew or bias</ font > </ i >
87
87
< i > < font color =#4b5d50 > # -beta2 - the tension parameter, beta2 = 0 for no tension</ font > </ i >
88
- < i > < font color =#4b5d50 > # -t - list of independent variable (t) values</ font > </ i >
88
+ < i > < font color =#4b5d50 > # -t - list of independent variable (t) values, -x is an alias </ font > </ i >
89
89
< i > < font color =#4b5d50 > # -y - list of dependent variable (y) values</ font > </ i >
90
- < i > < font color =#4b5d50 > # -ti - list of independent variable interpolation (ti) values</ font > </ i >
90
+ < i > < font color =#4b5d50 > # -ti - list of independent variable interpolation (ti) values, -xi is an alias </ font > </ i >
91
91
< i > < font color =#4b5d50 > # Returns: list of approximation values yi at ti points.</ font > </ i >
92
- < b > < font color = #923B23 > set </ font > </ b > arguments [ argparse {
92
+ argparse {
93
93
{< font color =#463e11 > -beta1</ font > = < font color =#463e11 > -required</ font > }
94
94
{< font color =#463e11 > -beta2</ font > = < font color =#463e11 > -required</ font > }
95
- {< font color =#463e11 > -t</ font > = < font color =#463e11 > -required</ font > }
95
+ {< font color =#463e11 > -t</ font > = < font color =#463e11 > -required</ font > < font color = #463e11 > -alias </ font > x }
96
96
{< font color =#463e11 > -y</ font > = < font color =#463e11 > -required</ font > }
97
- {< font color =#463e11 > -ti</ font > = < font color =#463e11 > -required</ font > }
98
- }]
97
+ {< font color =#463e11 > -ti</ font > = < font color =#463e11 > -required</ font > < font color = #463e11 > -alias </ font > xi }
98
+ }
99
99
< b > < font color =#923B23 > set</ font > </ b > tLen [< b > < font color =#923B23 > llength</ font > </ b > < font color =#4A181B > $t</ font > ]
100
100
< b > < font color =#923B23 > set</ font > </ b > yLen [< b > < font color =#923B23 > llength</ font > </ b > < font color =#4A181B > $y</ font > ]
101
101
< b > < font color =#923B23 > set</ font > </ b > tiLen [< b > < font color =#923B23 > llength</ font > </ b > < font color =#4A181B > $ti</ font > ]
@@ -121,24 +121,24 @@ <h5 class='ruff'>Return value</h5><p class='ruff'>list of approximation values y
121
121
< p class ='ruff '> Evaluates a cubic B spline approximant.</ p >
122
122
< div class ='ruff_synopsis '> < span class ='ruff_cmd '> cubicBSpline1d</ span > < span class ='ruff_arg '> ?args?</ span > </ div >
123
123
< h5 class ='ruff '> Parameters</ h5 > < table class ='ruff_deflist '>
124
- < tr > < td > < code > < font color =#463e11 > -t</ font > </ code > </ td > < td > List of independent variable (t) values.</ td > </ tr >
125
- < tr > < td > < code > < font color =#463e11 > -ti</ font > </ code > </ td > < td > List of independent variable interpolation (ti) values.</ td > </ tr >
124
+ < tr > < td > < code > < font color =#463e11 > -t</ font > </ code > </ td > < td > List of independent variable (t) values, -x is an alias .</ td > </ tr >
125
+ < tr > < td > < code > < font color =#463e11 > -ti</ font > </ code > </ td > < td > List of independent variable interpolation (ti) values, -xi is an alias .</ td > </ tr >
126
126
< tr > < td > < code > < font color =#463e11 > -y</ font > </ code > </ td > < td > List of dependent variable (y) values.</ td > </ tr >
127
127
</ table >
128
128
< h5 class ='ruff '> Return value</ h5 > < p class ='ruff '> list of approximation values yi at ti points.</ p >
129
129
< div class ='ruff_source '> < p class ='ruff_source_link '> < a id ='l_tclinterp_approximation_cubicBSpline1d ' href ="javascript:toggleSource('tclinterp_approximation_cubicBSpline1d') "> Show source</ a > </ p >
130
130
< div id ='tclinterp_approximation_cubicBSpline1d ' class ='ruff_dyn_src '> < pre > < b > < font color =#ca14ca > proc</ font > </ b > ::tclinterp::approximation::cubicBSpline1d {args} {
131
131
132
132
< i > < font color =#4b5d50 > # Evaluates a cubic B spline approximant.</ font > </ i >
133
- < i > < font color =#4b5d50 > # -t - list of independent variable (t) values</ font > </ i >
133
+ < i > < font color =#4b5d50 > # -t - list of independent variable (t) values, -x is an alias </ font > </ i >
134
134
< i > < font color =#4b5d50 > # -y - list of dependent variable (y) values</ font > </ i >
135
- < i > < font color =#4b5d50 > # -ti - list of independent variable interpolation (ti) values</ font > </ i >
135
+ < i > < font color =#4b5d50 > # -ti - list of independent variable interpolation (ti) values, -xi is an alias </ font > </ i >
136
136
< i > < font color =#4b5d50 > # Returns: list of approximation values yi at ti points.</ font > </ i >
137
- < b > < font color = #923B23 > set </ font > </ b > arguments [ argparse {
138
- {< font color =#463e11 > -t</ font > = < font color =#463e11 > -required</ font > }
137
+ argparse {
138
+ {< font color =#463e11 > -t</ font > = < font color =#463e11 > -required</ font > < font color = #463e11 > -alias </ font > x }
139
139
{< font color =#463e11 > -y</ font > = < font color =#463e11 > -required</ font > }
140
- {< font color =#463e11 > -ti</ font > = < font color =#463e11 > -required</ font > }
141
- }]
140
+ {< font color =#463e11 > -ti</ font > = < font color =#463e11 > -required</ font > < font color = #463e11 > -alias </ font > xi }
141
+ }
142
142
< b > < font color =#923B23 > set</ font > </ b > tLen [< b > < font color =#923B23 > llength</ font > </ b > < font color =#4A181B > $t</ font > ]
143
143
< b > < font color =#923B23 > set</ font > </ b > yLen [< b > < font color =#923B23 > llength</ font > </ b > < font color =#4A181B > $y</ font > ]
144
144
< b > < font color =#923B23 > set</ font > </ b > tiLen [< b > < font color =#923B23 > llength</ font > </ b > < font color =#4A181B > $ti</ font > ]
@@ -176,12 +176,12 @@ <h5 class='ruff'>Return value</h5><p class='ruff'>dict with lists of xi and yi p
176
176
< i > < font color =#4b5d50 > # -t - list of t points at which we want to evaluate Bezier function, best results are obtained within the interval</ font > </ i >
177
177
< i > < font color =#4b5d50 > # [0,1]</ font > </ i >
178
178
< i > < font color =#4b5d50 > # Returns: dict with lists of xi and yi points at specified t points</ font > </ i >
179
- < b > < font color = #923B23 > set </ font > </ b > arguments [ argparse {
179
+ argparse {
180
180
{< font color =#463e11 > -n</ font > = < font color =#463e11 > -required</ font > }
181
181
{< font color =#463e11 > -x</ font > = < font color =#463e11 > -required</ font > }
182
182
{< font color =#463e11 > -y</ font > = < font color =#463e11 > -required</ font > }
183
183
{< font color =#463e11 > -t</ font > = < font color =#463e11 > -required</ font > }
184
- }]
184
+ }
185
185
< b > < font color =#923B23 > if</ font > </ b > {[< b > < font color =#923B23 > string</ font > </ b > is integer < font color =#463e11 > -strict</ font > < font color =#4A181B > $n</ font > ]==0} {
186
186
< b > < font color =#ca14ca > return</ font > </ b > < font color =#463e11 > -code</ font > error < font color =#035103 > "Order of Bezier curve -n '< font color =#4A181B > $</ font > n' must be of integer type"</ font >
187
187
} < b > < font color =#923B23 > elseif</ font > </ b > {< font color =#4A181B > $n</ font > <0} {
0 commit comments