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)
  • 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)
  • Re: E = wLF Derived By Modified Quantum Logic
    ... as the Euclidean type distance ddecreases from 1 to 0. ... only on the unit ball or here the unit n-cube in a functional space, ... quantity with unwritten length dimension in pn), although P ...
    (sci.logic)