****** |
o u t p u t ******
iflag.....integer indicating success (=1) or failure (=2) .
if iflag = 1, then
|
t.....array of length | |
n+k containing the optimal knots ready for
|
use in optimal recovery. specifically, | |
t(1) = ... = t(k) =
|
tau(1) |
and t(n+1) = ... = t(n+k) = tau(n) , while the n-k
|
interior knots | |
t(k+1), ..., t(n) are calculated as described
|
below under | |
*method* .
if iflag = 2, then
k .lt. 3, or n .lt. k, or a certain linear system was found to
be singular.
|
|
|
|
|
|
and nowhere else in (tau(1),tau(n)) is orthogon-
|
al to the spline space | |
spline( k , tau ) on that interval .
|
let |
xi(j) be the current guess for t(k+j), j=1,...,n-k. then
the next newton iterate is of the form
|
xi(j) |
+ (-)**(n-k-j)*x(j) , j=1,...,n-k,
|
|
|
|
|
with |
x the solution of the linear system
|
here, |
c(i,j) = b(i)(xi(j)), all j, with b(i) the i-th b-spline of
|
order |
k for the knot sequence tau , all i, and d is the vector
|
given by | |
d(i) = sum( -a(j) , j=i,...,n )*(tau(i+k)-tau(i))/k, all i,
|
with |
a(i) = sum ( (-)**(n-k-j)*b(i,k+1,tau)(xi(j)) , j=1,...,n-k )
|
for i=1,...,n-1, and | |
a(n) = -.5 .
|
(see chapter | |
xiii of text and references there for a derivation)
|
the first guess for | |
t(k+j) is (tau(j+1)+...+tau(j+k-1))/(k-1) .
|
iteration terminates if | |
max(abs(x(j))) .lt. t o l , with
|
t o l |
= t o l r t e *(tau(n)-tau(1))/(n-k) ,
|
|
|
|
|
or else after | |
n e w t m x iterations , currently,
newtmx, tolrte / 10, .000001
dimension scrtch((n-k)*(2*k+3)+5*k+3), t(n+k)
current fortran standard makes it impossible to specify the precise dim-
|
ensions of | |
scrtch and t without the introduction of otherwise
superfluous additional arguments .
|
|
|