FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Fitting a circle

Home page Community General Fitting a circle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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

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