Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: polyfitter.multifit - Function Up: polyfitter - Tool Previous: polyfitter - Tool


polyfitter.fit - Function



Package utility
Module mathematics
Tool polyfitter


Fit a polynomial of a specified order to data


Synopsis
fit(coeff, coefferrs, chisq, x, y, sigma, order)


Arguments

coeff   The coefficients of the fit. The constant (0th-order) term is first, highest order term last. (Output)
coefferrs   Estimated errors of the fit. (Output)
chisq   $ \chi^{2}_{}$ for the fit. (Output)
x   (Input)
y   Must be the same length as ``x''. (Input)
sigma   Errors in the ``y'' values. (Input)
    Default: 1.0
order   Order of the highest term in the polynomial to fit. (Input)
    Allowed: 0$ \le$order$ \le$10
    Default: 1


Returns
Bool -- did the fit succeed


Description
Fit a polynomial to data.





next up previous contents index
Next: polyfitter.multifit - Function Up: polyfitter - Tool Previous: polyfitter - Tool   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15