Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Interpolant fits / goodness of fit query
Replies: 1   Last Post: Jul 18, 2013 9:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,944
Registered: 12/7/04
Re: Interpolant fits / goodness of fit query
Posted: Jul 18, 2013 9:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



"D R G" <grimesd2@gmail.com> wrote in message
news:d6505346-ba02-4078-9328-13094ba893f5@googlegroups.com...
> I have a model of a process that is discrete - I also have some
> experimental data, and I want to work out how well this fits the discrete
> function; of course, some of these experimental points are 'between' my
> discrete points, so I need to be able to estimate these to get a goodness
> of fit: using interpolant fitting in the GUI curve fitting tool yields a
> perfect fit,


Of course it does. That's the main difference between interpolation and
curve fitting.

https://en.wikipedia.org/wiki/Interpolant#Related_concepts

> whether linear, cubic of shape preserving is used: is thee some way I can
> generate all my interpolant points to compare them with the data points?
> I've attached an image of 30 of my discrete data points, and the
> interpolant function that easily joins them.
>
> http://i.imgur.com/kz5XgzI.png - Screencap of discrete function / interp.
> fit


Export the interpolant from the Curve Fitting GUI or generate code from the
interpolant, then evaluate the exported interpolant or execute the generated
code.

http://www.mathworks.com/help/curvefit/generating-code-and-exporting-fits-to-the-workspace.html

> My second question is can I then find a command line version? I will need
> to automate this for a few hundred runs to find the best fit, and would be
> ideal if I could code it into a .m file to basically generate a
> interpolant fit, and compare this to lab data to get a goodness of fit.


See above or use the FIT function provided by Curve Fitting Toolbox:

http://www.mathworks.com/help/curvefit/fit.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.