Changeset 6346 for trunk/psLib
- Timestamp:
- Feb 7, 2006, 1:14:21 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 6 edited
-
src/astro/psCoord.c (modified) (6 diffs)
-
src/imageops/psImageStats.c (modified) (2 diffs)
-
src/math/psMinimizeLMM.c (modified) (2 diffs)
-
src/math/psMinimizePowell.c (modified) (3 diffs)
-
src/math/psMinimizePowell.h (modified) (2 diffs)
-
test/math/tst_psMinimizePowell.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r6254 r6346 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.10 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 1-30 23:42:24$12 * @version $Revision: 1.106 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-02-07 23:14:21 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 63 63 XXX: This code no longer makes sense. The merge must be reviewed. 64 64 *****************************************************************************/ 65 66 65 // XXX EAM : below is the code using the standard matrix representation. 67 66 // note that this inversion requires x->nX == 1, y->nY == 1 and … … 205 204 } 206 205 207 // XXX: Verify the order/nterms poly changes208 206 psPlaneTransform* psPlaneTransformAlloc(int order1, int order2) 209 207 { … … 266 264 } 267 265 268 // XXX: Verify the order/nterms poly changes269 266 psPlaneDistort* psPlaneDistortAlloc(int order1, int order2, int order3, int order4) 270 267 { … … 327 324 /****************************************************************************** 328 325 XXX: Private Function. 326 327 XXX: Optimize this. We don't need a while loop here. 329 328 330 329 piNormalize(): take an input angle in radians and convert it to the range 0:2*PI. … … 867 866 // Solution via LU Decomposition 868 867 // 868 // XXX: Check return codes 869 // 869 870 psVector *permutation = psVectorAlloc(nCoeff, PS_TYPE_F64); // Permutation vector for LU Decomposition 870 871 psImage *luMatrix = psMatrixLUD(NULL, &permutation, matrix); // LU decomposed matrix 871 872 psVector *xSolution = psMatrixLUSolve(NULL, luMatrix, xVector, permutation); // Solution in x 872 873 psVector *ySolution = psMatrixLUSolve(NULL, luMatrix, yVector, permutation); // Solution in y 873 874 //875 // XXX: Should check the output of the matrix routines and return false if bad.876 //877 874 878 875 // -
trunk/psLib/src/imageops/psImageStats.c
r6306 r6346 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 89$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-02-0 2 21:11:13$11 * @version $Revision: 1.90 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-02-07 23:14:21 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 600 600 } else if (coeffs->type == PS_POLYNOMIAL_CHEB) { 601 601 return(p_psImageEvalPolynomialCheb(input, coeffs)); 602 } 603 printf("XXX: Error: wrong polynomial type\n");604 // XXX: psError()602 } else { 603 psError(PS_ERR_UNKNOWN, false, "Incorrect Polynomial Type.\n"); 604 } 605 605 return(NULL); 606 606 } -
trunk/psLib/src/math/psMinimizeLMM.c
r6322 r6346 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-02-0 3 22:05:22$12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-02-07 23:14:21 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 513 513 } 514 514 515 // XXX EAM :temporary gauss-jordan solver based on gene's515 // This is a temporary gauss-jordan solver based on gene's 516 516 // version based on the Numerical Recipes version 517 517 bool psGaussJordan( -
trunk/psLib/src/math/psMinimizePowell.c
r6322 r6346 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-02-0 3 22:05:22$11 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-02-07 23:14:21 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 740 740 psMinimization *min, 741 741 psVector *params, 742 const psVector *paramMask,742 psMinConstrain *constrain, 743 743 const psArray *coords, 744 744 const psVector *value, … … 751 751 Chi2PowellFunc = model; 752 752 753 return(psMinimizePowell(min, params, paramMask, coords, myPowellChi2Func));753 return(psMinimizePowell(min, params, constrain->paramMask, coords, myPowellChi2Func)); 754 754 } 755 755 -
trunk/psLib/src/math/psMinimizePowell.h
r6185 r6346 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 1-23 20:44:29$10 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-02-07 23:14:21 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 81 81 psMinimization *min, ///< Minimization specification 82 82 psVector *params, ///< "Best guess" for parameters that minimize func 83 const psVector *paramMask, ///< Parameters to be held fixed by minimizer83 psMinConstrain *constrain, 84 84 const psArray *coords, ///< Measurement coordinates 85 85 const psVector *value, ///< Measured values at the coordinates -
trunk/psLib/test/math/tst_psMinimizePowell.c
r6332 r6346 5 5 6 6 XXX: Must verify the stderr for the NULL parameter tests. 7 XXX: psMinimizeChi2Powell() is untested. 7 8 *****************************************************************************/ 8 9 #include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.
