Changeset 1fa4db39 in sasview for park_integration/src


Ignore:
Timestamp:
Oct 10, 2011 10:14:56 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
91a43d0
Parents:
c7e8898
Message:

added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/src/sans/fit/ParkFitting.py

    rc7e8898 r1fa4db39  
    278278                N = len(m.residuals) 
    279279                m.degrees_of_freedom = N-k if N>k else 1 
     280                # dividing residuals by N in order to be consistent with Scipy 
    280281                m.chisq = numpy.sum(m.residuals**2/N)  
    281282                resid.append(m.weight*m.residuals/math.sqrt(N)) 
Note: See TracChangeset for help on using the changeset viewer.