Changeset 10257
- Timestamp:
- Nov 28, 2006, 4:36:07 PM (20 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 2 edited
-
detrend/pmShutterCorrection.c (modified) (2 diffs)
-
objects/pmModelGroup.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmShutterCorrection.c
r9997 r10257 301 301 302 302 // XXX for the moment, don't set any constraints 303 // psMinConstrain *constrain = psMinConstrainAlloc(); 304 // constrain->paramDelta = psVectorAlloc (3, PS_TYPE_F32); 305 // constrain->paramMin = psVectorAlloc (3, PS_TYPE_F32); 306 // constrain->paramMax = psVectorAlloc (3, PS_TYPE_F32); 307 // constrain->paramMask = NULL; 308 psMinConstrain *constrain = NULL; // Constraints on the minimization 303 // psMinConstraint *constraint = psMinConstraintAlloc(); 304 // constrain->checkLimits = pmShutterParamLimits; 305 // constrain->paramMask = NULL; 306 psMinConstraint *constraint = NULL; // Constraints on the minimization 309 307 310 308 // XXX ignore covariance matrix for the moment … … 321 319 } 322 320 323 if (!psMinimizeLMChi2(minInfo, covar, params, constrain , x, counts, cntError, pmShutterCorrectionModel)) {321 if (!psMinimizeLMChi2(minInfo, covar, params, constraint, x, counts, cntError, pmShutterCorrectionModel)) { 324 322 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to fit for shutter correction.\n"); 325 323 psFree(x); -
trunk/psModules/src/objects/pmModelGroup.h
r7478 r10257 9 9 * @author EAM, IfA 10 10 * 11 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2006- 06-10 02:58:43$11 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-11-29 02:36:07 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 21 21 // This function is the model chi-square minimization function for this model. 22 22 typedef psMinimizeLMChi2Func pmModelFunc; 23 24 // This function is the model chi-square minimization function for this model. 25 typedef psMinimizeLMLimitFunc pmModelLimits; 23 26 24 27 // This function returns the integrated flux for the given model parameters. … … 32 35 /* This function sets the model parameter limits vectors for the given model 33 36 */ 34 typedef bool (*pmModelLimits)(psVector **beta_lim, psVector **params_min, psVector **params_max);37 // typedef bool (*pmModelLimits)(psVector **beta_lim, psVector **params_min, psVector **params_max); 35 38 36 39 /* This function provides the model guess parameters based on the details of
Note:
See TracChangeset
for help on using the changeset viewer.
