Re: Interpolation of positive functions



dudesinmexico@xxxxxxxxx a scris:
All the interpolation algorithms I know will produce negative values
even when they are applied to sampled functions that, for physical
reasons, are known to be always positive (e.g. digitized images).
The usual approach is to clip the negative values to zero. This is
certainly good enough for many applications, however I believe that one
could do better with an interpolation algorithm guaranteed to provide
values that are always >= 0.
Is there such a thing?
thanks/> -Arrigo
I use following method (called BLL-interpolation).It's very close with
Sheppard method.
Consider that x_0,x_1,...,x_n are distingt points and assume that
f(x_0),f(x_1),...,f(x_n) are known.
Denote
w(x)=(x-x_0)...(x-x_n) - ("knot polynomial")
and for k in {0,1,...,n} let
l_k(x)=w(x)/((x-x_k)w'(x_k)) -("fundamental Lagrange polynomials").
Observe that
(1) l_k(x_k)=1 and l_k(x_j)=0 when k=/=j .
STEP 1. Select a non-zero (real) number p .
STEP 2. Take in an arbitrary way a system of positive weights
w:={w_0,w_1,...,w_n }.
STEP 3. Construct
A(x):= SUM_{0=<k<= n}w_k*|l_k(x)|^p *f(x_k)
and
B(x):=SUM_{0=<i<= n}w_i*|l_i(x)|^p .
STEP 4. Define
=======================
(2) L(x):=L(p,w;f;x):= A(x)/B(x)
=======================
Properties:

(A) We have f(x_k)>=0 , 0=<k=<n, implies L(x)>=0 for all x .
(B) L(x_j)=f(x_j) for j in {0,1,...,n}.

Indeed, from (1)-(2)

L(x_j)=A(x_j)/B(x_j)= w_j*f(x_j)/w_j = f(x_j) .

Perhaps help./Alex
Regarding monotone interpolation, there is an "old" but nice
paper by Wolibner (1949-1954 ??) published in Poland (?).

.



Relevant Pages

  • Re: Interpolation of positive functions
    ... even when they are applied to sampled functions that, ... reasons, are known to be always positive (e.g. digitized images). ... You could look at cardinal splines which work when the data is uniformly ...
    (sci.math.num-analysis)
  • Re: Interpolation of positive functions
    ... even when they are applied to sampled functions that, ... reasons, are known to be always positive (e.g. digitized images). ... could do better with an interpolation algorithm guaranteed to provide ...
    (sci.math.num-analysis)
  • Re: Interpolation of positive functions
    ... even when they are applied to sampled functions that, ... reasons, are known to be always positive (e.g. digitized images). ... Professor Emeritus of Physics ...
    (sci.math.num-analysis)
  • Re: Determining if it is "safe" to send UDP packets
    ... >>reasons for using UDP. ... We want to transfer images obtained from a camera as fast ... > packet does not get received. ... I don't know if it will help in your UDP case, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Inserting into two table
    ... I can see good reasons to have a split table. ... > text related to that ID and again another table that contains images ... Ditto with the pictures (although I have to admit I normally store info on ...
    (comp.lang.php)