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/pmSourceFitSet.c

    r6825 r6848  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.1.2.4 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-04-10 20:21:36 $
     5 *  @version $Revision: 1.1.2.5 $ $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
     
    3333static psVector *oneDeriv;
    3434
     35// save as static values so they may be set externally
     36static psF32 PM_SOURCE_FIT_MODEL_NUM_ITERATIONS = 15;
     37static psF32 PM_SOURCE_FIT_MODEL_TOLERANCE = 0.1;
     38static bool PM_PSF_POISSON_WEIGHTS = true;
     39
     40bool pmSourceFitSetInit (float nIter, float tol, bool poissonErrors)
     41{
     42
     43    PM_SOURCE_FIT_MODEL_NUM_ITERATIONS = nIter;
     44    PM_SOURCE_FIT_MODEL_TOLERANCE = tol;
     45
     46    PM_PSF_POISSON_WEIGHTS = poissonErrors;
     47
     48    return true;
     49}
     50
    3551bool pmModelFitSetInit (pmModelType type)
    3652{
     
    97113*/
    98114
     115/*
    99116# define PM_SOURCE_FIT_MODEL_NUM_ITERATIONS 15
    100117# define PM_SOURCE_FIT_MODEL_TOLERANCE 0.1
     118*/
    101119
    102120bool pmSourceFitSet (pmSource *source,
Note: See TracChangeset for help on using the changeset viewer.