About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/get_statistic.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 get_statistic Context: sherpa

Synopsis

Module functions to get the current value of the statistic comparing source and background data and model values.

Syntax

Double_Type get_statistic([Integer_Type])
Double_Type get_bstatistic([Integer_Type])

Error Return Value: NULL

Arguments:

(1) data set number (default 1)

Description

The function get_statistic() returns the latest evaluated statistic value for the given data set. (The function get_bstatistic() does so for the appropriate background data set and background model.)

(Note that this function is not the same as get_statistics(), which returns an array showing the value of the fit statistic in each bin. This function returns the sum of the values in the array returned by get_statistics().)

See the related Sherpa command GOODNESS for more information.

Example

sherpa> get_statistic()
638.148

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.