Shortest distance from a point to this curve

前端 未结 2 2026
广开言路
广开言路 2021-01-12 20:19

I need to find the distance of multiple points to a curve of the form: f(x) = a^(k^(bx))

My first option was using its derivative, using a line of the f

2条回答
  •  失恋的感觉
    2021-01-12 20:42

    To find distance from point to curve it's not a simple task, for that you need to find the global of function enter image description here where f(x) is the function which determine your curve.

    For that goal you could use:
    Simplex method
    Nelder_Mead_method
    gradient_descent

    This methods implemented in many libraries like Solver Foundation, NMath etc.

提交回复
热议问题