Forum FlexPro – Discuss your topic!

Fitting a circle

Accueil > Community > General > Fitting a circle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12551

    Hi.
    I wanted to fitting a circle for my data. I didn’t find any non-linear curve fitting in Flexpro.8 for circle.
    I need to calculate radius of fitted circle.How can I do this?

    #8214

    Hi.
    I wanted to fitting a circle for my data. I didn’t find any non-linear curve fitting in Flexpro.8 for circle.
    I need to calculate radius of fitted circle.How can I do this?

    #8895
    Bernhard KantzBernhard Kantz
    Participant

    In this case you have to use your own user-defined function in the nonlinear curvefit analysis object.
    The circe function is (x-x0)^2+(y-y0)^2 = R^2
    For the upper half of the circle you could use the following FPScript function:

    
    Dim x0 = p[0]
    Dim y0 = p[1]
    Dim R = p[2]
    Sqrt(R^2 - (x-x0)^2) + y0
    

    support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.