- Timestamp:
- Apr 12, 2006, 8:18:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/objects/pmSourceFitModel.h
r6556 r6848 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.1.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-0 3-09 03:14:23$5 * @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-04-13 06:18:46 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 13 13 # define PM_SOURCE_FIT_MODEL_H 14 14 15 typedef enum { 16 PM_SOURCE_FIT_NORM, 17 PM_SOURCE_FIT_PSF, 18 PM_SOURCE_FIT_EXT, 19 PM_SOURCE_FIT_PSF_AND_SKY, 20 PM_SOURCE_FIT_EXT_AND_SKY 21 } pmSourceFitMode; 22 15 23 bool pmSourceFitModelInit( 16 24 float nIter, ///< max number of allowed iterations 17 float tol ///< convergence criterion 25 float tol, ///< convergence criterion 26 bool poissonErrors // use poisson errors for fits? 18 27 ); 19 28 20 29 /** pmSourceFitModel() 21 30 * 22 * Fit the requested model to the specified source. The starting guess for the 23 * model is given by the input source.model parameter values. The pixels of 24 * interest are specified by the source.pixelsand source.maskentries. This 25 * function calls psMinimizeLMChi2() on the image data. The function returns TRUE 26 * on success or FALSE on failure. 31 * Fit the requested model to the specified source. The starting guess for the model is given 32 * by the input source.model parameter values. The pixels of interest are specified by the 33 * source.pixels and source.mask entries. This function calls psMinimizeLMChi2() on the image 34 * data. The function returns TRUE on success or FALSE on failure. 27 35 * 28 36 */ … … 30 38 pmSource *source, ///< The input pmSource 31 39 pmModel *model, ///< model to be fitted 32 const bool PSF ///< Treat model as PSF or EXT? 40 pmSourceFitMode mode ///< define parameters to be fitted 41 ); 42 43 44 // initialize data for a group of object models 45 bool pmModelFitSetInit (pmModelType type); 46 47 // clear data for a group of object models 48 void pmModelFitSetClear (void); 49 50 // function used to fit a group of object models 51 psF32 pmModelFitSet(psVector *deriv, 52 const psVector *params, 53 const psVector *x); 54 55 /** pmSourceFitSet() 56 * 57 * Fit the requested model to the specified source. The starting guess for the model is given 58 * by the input source.model parameter values. The pixels of interest are specified by the 59 * source.pixels and source.mask entries. This function calls psMinimizeLMChi2() on the image 60 * data. The function returns TRUE on success or FALSE on failure. 61 * 62 */ 63 bool pmSourceFitSet( 64 pmSource *source, ///< The input pmSource 65 psArray *modelSet, ///< model to be fitted 66 pmSourceFitMode mode ///< define parameters to be fitted 33 67 ); 34 68
Note:
See TracChangeset
for help on using the changeset viewer.
