IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

added weight to ModelInit, set to sky variance

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.