Changeset 14321
- Timestamp:
- Jul 19, 2007, 2:23:22 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r13982 r14321 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-0 6-26 19:27:37$8 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-07-20 00:23:22 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 745 745 746 746 // XXX EAM : these values can be negative, so we need to limit the range 747 source->moments->Sx = sqrt(PS_MAX(X2/Sum - PS_SQR(x), 0)); 748 source->moments->Sy = sqrt(PS_MAX(Y2/Sum - PS_SQR(y), 0)); 747 // XXX EAM : make the use of this consistent: should this be the second moment or sqrt? 748 // source->moments->Sx = sqrt(PS_MAX(X2/Sum - PS_SQR(x), 0)); 749 // source->moments->Sy = sqrt(PS_MAX(Y2/Sum - PS_SQR(y), 0)); 750 source->moments->Sx = PS_MAX(X2/Sum - PS_SQR(x), 0); 751 source->moments->Sy = PS_MAX(Y2/Sum - PS_SQR(y), 0); 749 752 750 753 psTrace ("psModules.objects", 4,
Note:
See TracChangeset
for help on using the changeset viewer.
