Re: Algorithm for distance from point to function



In article <qtfjb25k3ea0cvq344c9heq5lamcvq50dd@xxxxxxx>,
Mike.Prager <mike.prager¿@noaa.gov> wrote:
Terry wrote:

The minimum distance is the length of the shortest line from the point
x1y1 to a tangent to the line y=f(x).

Thanks to all who posted hints. We had indeed been planning
to use an optimization in finding the shortest distance. The
function to which we are finding distance is monotonic, and I
think that will simplify things a bit. It may even be
possible that we can use the derivative of the distance --
we'll have to examine that closely.

If you only use derivatives you'll miss any maxima/minima that are
either at end-points of the curve or at points where f(x) is not
differentiable, which can of course happen even if f is monotonic.

-- John Harper, School of Mathematics, Statistics and Computer Science,
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail john.harper@xxxxxxxxx phone (+64)(4)463 5341 fax (+64)(4)463 5045
.



Relevant Pages

  • Re: Algorithm for distance from point to function
    ... to use an optimization in finding the shortest distance. ... function to which we are finding distance is monotonic, ... If you only use derivatives you'll miss any maxima/minima that are ... -- John Harper, School of Mathematics, Statistics and Computer Science, ...
    (comp.lang.fortran)
  • Re: Optimum spline problem
    ... maybe there might be an optimization approach might allow for an improvement ... spellucci@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Peter Spellucci) wrote: ... >>estimates of the radial distance from the end node to each of the other nodes ... >>are irregularily spaced but the maximum distance between nodes and the ...
    (sci.math.num-analysis)
  • Re: "what is the deriative actually?"
    ... explain people what derivatives are. ... dd is the increase in distance associated. ... the derivative dd/dt is obviously the constant v ... You might want to read a little about Leibniz's Notation, ...
    (sci.math)
  • Re: large data sets
    ... Paul wrote: ... I really only need to compute the distance between ... You can make a small optimization in the distance calculation: ... you would want to test to see if this optimization ...
    (comp.soft-sys.matlab)