Re: Algorithm for distance from point to function



Thomas Koenig wrote:
Mike.Prager <mike.prager¿@noaa.gov> wrote:

Does there exist any reasonably general algorithm for computer
the distance between the point (x,y) and a function y = f(x)?

Minimize sqrt((xi-x)**2 + (f(xi)-y)**2).

There may be local minima, so you might want a routine that
is good at finding a global minimum. It is only one dimension,
so it shouldn't be too hard.

I usually look in Numerical Recipes.

-- glen

.



Relevant Pages

  • Re: Inter track distances
    ... difficulty finding out the distance between tracks. ... Short of getting in the car and going down to the Spa Valley Railway ... of Roman occupation and the dimension to a logical dimension in the ... New Zealand Railways was 11 feet, ...
    (uk.rec.models.rail)
  • Problem with interpolation
    ... A coplanar point may lead to a wide facet. ... qhull precision error: ... distance 5.7e-013 ... The min and max coordinates for each dimension are: ...
    (comp.soft-sys.matlab)
  • Interpolation
    ... A coplanar point may lead to a wide facet. ... qhull precision error: ... distance 5.7e-013 ... The min and max coordinates for each dimension are: ...
    (comp.soft-sys.matlab)
  • Quantum Gravity 296.0: Reinterpretation of E = mc^2 via 295 - Motion Generates Mass/Energy!
    ... I pointed out that acceleration ... and distance implicitly contain or are associated with a mass constant ... of magnitude 1, mo or m_o, with the dimension of Mass (M in the usual ...
    (sci.physics)
  • Re: Does a Magnets force weaken witht the distance cube?
    ... How about Magnets...I think there's is the distance cube which is ... Therefore could Gravity, charge, photons be virtually the same in the ... A scalar as a 5th dimensions ... Meaning of scalar and 5th dimension, ...
    (sci.physics.relativity)