IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2006, 8:18:46 PM (20 years ago)
Author:
magnier
Message:

additions to objects for further flexibility with options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmSourceFitModel.h

    r6556 r6848  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-03-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 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1313# define PM_SOURCE_FIT_MODEL_H
    1414
     15typedef 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
    1523bool pmSourceFitModelInit(
    1624    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?
    1827);
    1928
    2029/** pmSourceFitModel()
    2130 *
    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.
    2735 *
    2836 */
     
    3038    pmSource *source,   ///< The input pmSource
    3139    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
     45bool pmModelFitSetInit (pmModelType type);
     46
     47// clear data for a group of object models
     48void pmModelFitSetClear (void);
     49
     50// function used to fit a group of object models
     51psF32 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 */
     63bool pmSourceFitSet(
     64    pmSource *source,   ///< The input pmSource
     65    psArray *modelSet,   ///< model to be fitted
     66    pmSourceFitMode mode  ///< define parameters to be fitted
    3367);
    3468
Note: See TracChangeset for help on using the changeset viewer.