Fitting a circle

SupportCommunity General Fitting a circle

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #12551
    Saeed Farahanysaeed farahany
    Mitglied

    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
    Saeed Farahanysaeed farahany
    Mitglied

    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
    Moderator

    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

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.