Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : module details
Please login or create an account

fitters

(486/486 downloads)
Polynomial and multiple linear regression
Details
Version
1.0-1
Author(s)
Javier I. Carrero
Entity
Unal
Package maintainer
Javier Carrero
License
Supported Scilab Versions
>= 5.2
Creation Date
9th of November 2010
ATOMS packaging system
This module is being packaged
Description
The fitters module contains two scilab functions polyfit.sci: polynomial regression linfit.sci: linear regression over multiple independent variables
Files (1)
News (0)
Comments (8)
    Leave a comment 
Comment from Michael Baudin -- 10th of November 2010, 01:10:52 PM    
Hi,

Does the linfit function satisfy the same API as Matlab/linfit : 
http://www.mathworks.com/help/toolbox/stats/nlinfit.html

Do you have examples using your functions ?

Best regards,

Michaël Baudin
Comment from Javier Carrero -- 10th of November 2010, 04:36:35 PM    
Well in brief

-Matlab's nlfit is based on the Levenberg–Marquardt algorithm (LMA), which is an
iterative
procedure. Therefore its results depend on the choice of parameters for the convergence of
the method. LMA can be applied to linear problems (which are a particular case of the
general non-linear problems), but it is possible that different choices of parameters
produce different sets of coefficients for the same data set.

-linfit is a non-iterative procedure based on the analytic solution of the equations
resulting from the application of the minimum conditions. It allways produce the same
result, and does not require an initial estimation of the values of the parameters. But it
does not solve non-linear problems.

Comment from Javier Carrero -- 10th of November 2010, 05:06:39 PM    
Sorry, it wasn't my intention to use the same name as your code, simply I wasn't aware of
the existence of another polyfit in stixbox. Since no polyfit appears in Scilab's help I
assumed there wasn't one, and I didn't checked Git/stixbox. I chose the name trying to
make it clear it has the same purpose as the Matlab's polyfit.

Comparing the two codes I realized that the results seems to be the same, but my
implementation offers two options for the output, a Scilab polynomial object or a matrix
ordered as in Matlab, besides graphic comparison.

Given that the purpose of linfit and polyfit seems to fit ;) in Git/stixbox I would
suggest in incorporate them into that project.
Comment from Bb Aa -- 30th of May 2011, 10:22:16 AM    
Hi,
can you please tel me haw can i use this package to use polyfit function, I am working
with Scilab for 1 weak a go.
thanks 
Comment from Bb Aa -- 30th of May 2011, 10:22:34 AM    
Hi,
can you please tel me haw can i use this package to use polyfit function, I am working
with Scilab for 1 weak a go.
thanks 
Comment from Bb Aa -- 30th of May 2011, 11:06:21 AM    
please help me, I don't know haw can I install this fitters zip!!!!!
Comment from Bb Aa -- 30th of May 2011, 11:06:26 AM    
please help me, I don't know haw can I install this fitters zip!!!!!
Answer from Javier Carrero -- 30th of May 2011, 09:47:16 PM    
> please help me, I don't know haw can I install this fitters zip!!!!!
Sorry but installation with atoms is not possible, it seems that the module was never
packaged after I uploaded it. Anyway the documentation (manuals in pdf format) is in the
docs folder, and the functions are in the files linfit.sci and polyfit.sci. Therefore you
can load the functions in memory by executing these files after unzip fitters.zip. The
usage is described in the manuals.
Best regards
Javier 
Leave a comment
You need to log in before you can leave a comment.