Re: Algorithm for distance from point to function
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Sat, 15 Jul 2006 10:07:39 -0700
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
.
- Follow-Ups:
- Re: Algorithm for distance from point to function
- From: Terry
- Re: Algorithm for distance from point to function
- From: e p chandler
- Re: Algorithm for distance from point to function
- References:
- Algorithm for distance from point to function
- From: Mike . Prager
- Re: Algorithm for distance from point to function
- From: Thomas Koenig
- Algorithm for distance from point to function
- Prev by Date: Re: Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
- Next by Date: Re: Algorithm for distance from point to function
- Previous by thread: Re: Algorithm for distance from point to function
- Next by thread: Re: Algorithm for distance from point to function
- Index(es):
Relevant Pages
|
|