NRAO Home > CASA > CASA Toolkit Reference Manual
sd.fitter.get_chi2 - Function

5.1.4 Return χ2 value
Description

Return χ2 value of the fit. You must execute fitting process before getting χ2.

Arguments

Returns
float

Example

        s = scantable(’myscan.asap’)  
        s.set_cursor(thepol=1)        # select second pol (nb. 0-based)  
        f = fitter()  
        f.set_scan(s)  
        f.set_function(poly=0)  
        f.fit(row=0)                  # fit first row  
        ch2=f.get_chi2()


More information about CASA may be found at the CASA web page

Copyright © 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search