Re: 3-D fit for extrapolation



In article <1125393052.267819.243710@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Kimbusabi" <Gopal.K.Varma@xxxxxxxxx> wrote:

> I'm not entirely sure how to evaluate the the fit over the entire
> domain in the first method you described and when I tried using
> 'Inpaint_nons' downloaded from Matlab central it seemed to crash my
> computer. I would very much appreciate any further guidence if
> possible. A colleague suggested using something involving the simplex
> algorithm but in 2-D, any thoughts?


I don't know how large is the domain that you are
extrapolating over. (How much of that 512x270 grid
is given?) Inpaint_nans must solve a linear system
of equations in as many unknowns as you have nans.
So if there are 10000 total nans, then this is the
size of the system it must solve. Did it crash your
computer? Very likely not. Had there been a problem
then matlab would have given an out of memory error.

Instead, what happened is matlab was busy working.
It would have returned when it was done. In fact,
a problem with 10K unknowns is not at all uncommon
to solve, taking only a matter of seconds. In your
case, 512*270 = 138240. If 50% or those nodes are
known, then your system has 70k unknowns to solve
for. This is a moderately large problem, depending
on how much ram you have. Your computer may have
been going into virtual memory, which will be much
slower.

As for evaluating a polynomial fit over the entire
domain...

[x,y] = meshgrid(1:512,1:270);

Evaluate the polynomial for each (x,y) pair.

I have no idea what you friend was thinking about
with the simplex algorithm, especially since there
are at least two wildly different algorithms that
are often referred to as "the simplex algorithm"
that I can think of, and neither algorithm applies
at all directly to this problem.

John


--
The best material model of a cat is another, or
preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945
.



Relevant Pages

  • Re: How much requirement documentation up front?
    ... provide a best fit for a particular product. ... where there is no historical data or products where consumer habits ... fitting analysis again and selects a new algorithm. ... The fact that the software product itself makes it very convenient to ...
    (comp.object)
  • Re: C++: why 80 charachters??
    ... I guess if the result of your editor's word-wrapping algorithm is ... to be able to fit more than about 130 characters on my ... print utility to do ...
    (comp.lang.cpp)
  • Re: random model
    ... My GA algorithm is in fact searching for coefficients to fit a dataset. ... > thinking of are inherent in the GA itself, whatever you're modeling; ...
    (sci.math)
  • Re: algorithm to sum run time of simultaenous jobs?
    ... jobs are a match for the size of the objects you're trying to fit into ... the 5 bins? ... then my understanding is that there is no algorithm outside of ...
    (rec.puzzles)
  • Re: Algorithm for solving system of equations?
    ... I have a dynamic system consisting of 56 equations with 56 ... unknowns, and am trying to come up with a good algorithm for solving ... know, somehow, that the equations DO have a solution? ...
    (sci.math)