Changeset 10077
- Timestamp:
- Nov 17, 2006, 11:52:14 PM (20 years ago)
- Location:
- trunk/psModules/src/objects
- Files:
-
- 2 edited
-
pmSourceFitModel.c (modified) (4 diffs)
-
pmSourceFitModel.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceFitModel.c
r10075 r10077 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-11-18 0 7:31:44 $8 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-11-18 09:52:14 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 static psF32 PM_SOURCE_FIT_MODEL_NUM_ITERATIONS = 15; 36 36 static psF32 PM_SOURCE_FIT_MODEL_TOLERANCE = 0.1; 37 static psF32 PM_SOURCE_FIT_MODEL_WEIGHT = 1.0; 37 38 static bool PM_PSF_POISSON_WEIGHTS = true; 38 39 39 bool pmSourceFitModelInit (float nIter, float tol, bool poissonErrors)40 bool pmSourceFitModelInit (float nIter, float tol, float weight, bool poissonErrors) 40 41 { 41 42 42 43 PM_SOURCE_FIT_MODEL_NUM_ITERATIONS = nIter; 43 44 PM_SOURCE_FIT_MODEL_TOLERANCE = tol; 45 PM_SOURCE_FIT_MODEL_WEIGHT = weight; 44 46 PM_PSF_POISSON_WEIGHTS = poissonErrors; 45 47 … … 54 56 PS_ASSERT_PTR_NON_NULL(source, false); 55 57 PS_ASSERT_PTR_NON_NULL(source->moments, false); 56 PS_ASSERT_PTR_NON_NULL(source->peak, false);57 58 PS_ASSERT_PTR_NON_NULL(source->pixels, false); 58 59 PS_ASSERT_PTR_NON_NULL(source->mask, false); … … 334 335 PS_ASSERT_PTR_NON_NULL(source, false); 335 336 PS_ASSERT_PTR_NON_NULL(source->moments, false); 336 PS_ASSERT_PTR_NON_NULL(source->peak, false);337 337 PS_ASSERT_PTR_NON_NULL(source->pixels, false); 338 338 PS_ASSERT_PTR_NON_NULL(source->mask, false); -
trunk/psModules/src/objects/pmSourceFitModel.h
r6872 r10077 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2006- 04-17 18:01:05$5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-11-18 09:52:14 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 float nIter, ///< max number of allowed iterations 25 25 float tol, ///< convergence criterion 26 float weight, ///< use this weight for constant-weight fits 26 27 bool poissonErrors // use poisson errors for fits? 27 28 );
Note:
See TracChangeset
for help on using the changeset viewer.
