Do you know that your data sets will always be either (a) linear
(ie, y= mx +b) or (b) exponential (y = Aexp(Bx))? If that's the
case, then you should be able to use linear least squares as
suggested above. Since a and b are separate issues, you would have
to try both, and deside on a case by case basis which is better.
Also, in the case of b, you can convert it to a linear problem
by taking the log of y and plotting that against x. (At least
that feels right at the moment... log(y) = log(A) + Bx... yeah,
that's it).
If your data could be of other forms, like higher order polynomials,
then you will have to try all options, and it would turn into
a slow mess, since you would have to try all of them for any
given set.
Good luck,
Scott
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.