Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ScatterDraw & ScatterCtrl » Added GuessCoeff() to improve Fit() performance
Added GuessCoeff() to improve Fit() performance [message #44229] Mon, 02 February 2015 09:24
koldo is currently offline  koldo
Messages: 3377
Registered: August 2008
Senior Veteran
Fit() permits to adjust a series of data to a function through regression analysis.

As Fit() is for general use, it does not know special properties of equations to be fitted. This could be a problem if the initial conditions are not properly set, so in many cases Fit() will not converge.

To solve this it has been added GuessCoeff(). It permits to guess a proper initial conditions to let Fit() adjust successfully.

For example, SinusEquation represents y = offset + A*sin(w*t + phi) equation, and now includes GuessCoeff(). This helps to fit raw data like shown here:

index.php?t=getfile&id=4720&private=0
  • Attachment: img.jpg
    (Size: 135.20KB, Downloaded 341 times)


Best regards
IƱaki
 
Read Message
Previous Topic: Control only with keys
Next Topic: New user equations to be entered at run time
Goto Forum:
  


Current Time: Thu Jul 18 09:39:46 CEST 2024

Total time taken to generate the page: 0.01633 seconds