sncosmo.chisq¶
- sncosmo.chisq(data, model, modelcov=False)[source]¶
Calculate chisq statistic for the model, given the data.
- Parameters:
- model
Model
- data
Table
orndarray
ordict
Table of photometric data. Must include certain columns. See the “Photometric Data” section of the documentation for required columns.
- modelcovbool
Include model covariance? Calls
model.bandfluxcov
method instead ofmodel.bandflux
. The source in the model must therefore implement covariance.
- model
- Returns:
- chisqfloat