Sauter la navigation

Paramètres du compte.

Topic

Fitting a circle

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33709
    saeed farahany
    Participant

    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?

    #33711
    saeed farahany
    Participant

    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?

    #33710
    Bernhard 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:
    [code]
    Dim x0 = p[0]
    Dim y0 = p[1]
    Dim R = p[2]
    Sqrt(R^2 – (x-x0)^2) + y0
    [/code]
    support@weisang.com

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.