Changeset 29004 for trunk/psModules/src/objects/pmSourceFitModel.h
- Timestamp:
- Aug 20, 2010, 1:14:11 PM (16 years ago)
- Location:
- trunk/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/objects/pmSourceFitModel.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:mergeinfo deleted
-
trunk/psModules/src/objects/pmSourceFitModel.h
r21183 r29004 19 19 PM_SOURCE_FIT_EXT, 20 20 PM_SOURCE_FIT_PSF_AND_SKY, 21 PM_SOURCE_FIT_EXT_AND_SKY 21 PM_SOURCE_FIT_EXT_AND_SKY, 22 PM_SOURCE_FIT_INDEX, 23 PM_SOURCE_FIT_NO_INDEX, 22 24 } pmSourceFitMode; 23 25 24 bool pmSourceFitModelInit( 25 float nIter, ///< max number of allowed iterations 26 float tol, ///< convergence criterion 27 float weight, ///< use this weight for constant-weight fits 28 bool poissonErrors // use poisson errors for fits? 29 ); 26 typedef struct { 27 pmSourceFitMode mode; ///< optionally fit all or a subset of parameters 28 float nIter; ///< max number of allowed iterations 29 float minTol; ///< convergence criterion 30 float maxTol; ///< convergence criterion 31 float maxChisqDOF; ///< convergence criterion 32 float weight; ///< use this weight for constant-weight fits 33 bool poissonErrors; ///< use poisson errors for fits? 34 } pmSourceFitOptions; 35 36 // the pmSourceFitOptions structure is used to control details of the fitting process 37 pmSourceFitOptions *pmSourceFitOptionsAlloc(void); 38 39 // bool pmSourceFitModelInit( 40 // pmSourceFitMode mode, ///< what parameter set should be fitted? 41 // float nIter, ///< max number of allowed iterations 42 // float tol, ///< convergence criterion 43 // float weight, ///< use this weight for constant-weight fits 44 // bool poissonErrors ///< use poisson errors for fits? 45 // ); 30 46 31 47 /** pmSourceFitModel() … … 38 54 */ 39 55 bool pmSourceFitModel( 40 pmSource *source, ///< The input pmSource41 pmModel *model, ///< model to be fitted42 pmSourceFit Mode mode,///< define parameters to be fitted56 pmSource *source, ///< The input pmSource 57 pmModel *model, ///< model to be fitted 58 pmSourceFitOptions *options, ///< define parameters to be fitted 43 59 psImageMaskType maskVal ///< Value to mask 44 60 ); 45 61 46 47 // initialize data for a group of object models 48 bool pmSourceFitSetInit (pmModelType type); 49 50 // clear data for a group of object models 51 void pmSourceFitSetClear (void); 52 53 // function used to set limits for a group of models 54 bool pmSourceFitSet_CheckLimits (psMinConstraintMode mode, int nParam, float *params, float *betas); 55 56 // function used to fit a group of object models 57 psF32 pmSourceFitSet_Function(psVector *deriv, 58 const psVector *params, 59 const psVector *x); 60 61 /** pmSourceFitSet() 62 * 63 * Fit the requested model to the specified source. The starting guess for the model is given 64 * by the input source.model parameter values. The pixels of interest are specified by the 65 * source.pixels and source.mask entries. This function calls psMinimizeLMChi2() on the image 66 * data. The function returns TRUE on success or FALSE on failure. 67 * 68 */ 69 bool pmSourceFitSet( 70 pmSource *source, ///< The input pmSource 71 psArray *modelSet, ///< model to be fitted 72 pmSourceFitMode mode, ///< define parameters to be fitted 73 psImageMaskType maskVal ///< Vale to mask 74 75 ); 62 // // initialize data for a group of object models 63 // bool pmSourceFitSetInit (pmModelType type); 64 // 65 // // clear data for a group of object models 66 // void pmSourceFitSetClear (void); 67 // 68 // // function used to set limits for a group of models 69 // bool pmSourceFitSet_CheckLimits (psMinConstraintMode mode, int nParam, float *params, float *betas); 70 // 71 // // function used to fit a group of object models 72 // psF32 pmSourceFitSet_Function(psVector *deriv, 73 // const psVector *params, 74 // const psVector *x); 75 // 76 // /** pmSourceFitSet() 77 // * 78 // * Fit the requested model to the specified source. The starting guess for the model is given 79 // * by the input source.model parameter values. The pixels of interest are specified by the 80 // * source.pixels and source.mask entries. This function calls psMinimizeLMChi2() on the image 81 // * data. The function returns TRUE on success or FALSE on failure. 82 // * 83 // */ 84 // bool pmSourceFitSet( 85 // pmSource *source, ///< The input pmSource 86 // psArray *modelSet, ///< model to be fitted 87 // pmSourceFitMode mode, ///< define parameters to be fitted 88 // psImageMaskType maskVal ///< Vale to mask 89 // 90 // ); 76 91 77 92 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
