Topic
Fitting a circle
- This topic has 2 replies and 2 voices and was last updated 14 years, 4 months ago ago by saeed farahany.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
08.01.2011 at 17:36 #33709saeed farahanyParticipant
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?08.01.2011 at 17:36 #33711saeed farahanyParticipantHi.
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?10.01.2011 at 18:24 #33710Bernhard KantzParticipantIn 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 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.