Topic
Fitting a circle
Page d'accueil ' Communauté ' Généralités ' Fitting a circle
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par saeed farahany, le il y a 14 années et 6 mois.
Voir les messages de 3 - 1 à 3 (sur un total de 3)
-
AuteurMessages
-
08.01.2011 à 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 à 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 à 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 -
AuteurMessages
Voir les messages de 3 - 1 à 3 (sur un total de 3)
- Vous devez être connecté pour répondre à ce sujet.