IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10077


Ignore:
Timestamp:
Nov 17, 2006, 11:52:14 PM (20 years ago)
Author:
magnier
Message:

added weight to ModelInit, set to sky variance

Location:
trunk/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceFitModel.c

    r10075 r10077  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-11-18 07:31:44 $
     8 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-11-18 09:52:14 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535static psF32 PM_SOURCE_FIT_MODEL_NUM_ITERATIONS = 15;
    3636static psF32 PM_SOURCE_FIT_MODEL_TOLERANCE = 0.1;
     37static psF32 PM_SOURCE_FIT_MODEL_WEIGHT = 1.0;
    3738static bool PM_PSF_POISSON_WEIGHTS = true;
    3839
    39 bool pmSourceFitModelInit (float nIter, float tol, bool poissonErrors)
     40bool pmSourceFitModelInit (float nIter, float tol, float weight, bool poissonErrors)
    4041{
    4142
    4243    PM_SOURCE_FIT_MODEL_NUM_ITERATIONS = nIter;
    4344    PM_SOURCE_FIT_MODEL_TOLERANCE = tol;
     45    PM_SOURCE_FIT_MODEL_WEIGHT = weight;
    4446    PM_PSF_POISSON_WEIGHTS = poissonErrors;
    4547
     
    5456    PS_ASSERT_PTR_NON_NULL(source, false);
    5557    PS_ASSERT_PTR_NON_NULL(source->moments, false);
    56     PS_ASSERT_PTR_NON_NULL(source->peak, false);
    5758    PS_ASSERT_PTR_NON_NULL(source->pixels, false);
    5859    PS_ASSERT_PTR_NON_NULL(source->mask, false);
     
    334335    PS_ASSERT_PTR_NON_NULL(source, false);
    335336    PS_ASSERT_PTR_NON_NULL(source->moments, false);
    336     PS_ASSERT_PTR_NON_NULL(source->peak, false);
    337337    PS_ASSERT_PTR_NON_NULL(source->pixels, false);
    338338    PS_ASSERT_PTR_NON_NULL(source->mask, false);
  • trunk/psModules/src/objects/pmSourceFitModel.h

    r6872 r10077  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    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 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424    float nIter,   ///< max number of allowed iterations
    2525    float tol,      ///< convergence criterion
     26    float weight,      ///< use this weight for constant-weight fits
    2627    bool poissonErrors   // use poisson errors for fits?
    2728);
Note: See TracChangeset for help on using the changeset viewer.