IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6346


Ignore:
Timestamp:
Feb 7, 2006, 1:14:21 PM (20 years ago)
Author:
gusciora
Message:

....

Location:
trunk/psLib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r6254 r6346  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.105 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-01-30 23:42:24 $
     12*  @version $Revision: 1.106 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-02-07 23:14:21 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6363XXX: This code no longer makes sense.  The merge must be reviewed.
    6464 *****************************************************************************/
    65 
    6665// XXX EAM : below is the code using the standard matrix representation.
    6766//           note that this inversion requires x->nX == 1, y->nY == 1 and
     
    205204}
    206205
    207 // XXX: Verify the order/nterms poly changes
    208206psPlaneTransform* psPlaneTransformAlloc(int order1, int order2)
    209207{
     
    266264}
    267265
    268 // XXX: Verify the order/nterms poly changes
    269266psPlaneDistort* psPlaneDistortAlloc(int order1, int order2, int order3, int order4)
    270267{
     
    327324/******************************************************************************
    328325XXX: Private Function.
     326 
     327XXX: Optimize this.  We don't need a while loop here.
    329328 
    330329piNormalize(): take an input angle in radians and convert it to the range 0:2*PI.
     
    867866    // Solution via LU Decomposition
    868867    //
     868    // XXX: Check return codes
     869    //
    869870    psVector *permutation = psVectorAlloc(nCoeff, PS_TYPE_F64); // Permutation vector for LU Decomposition
    870871    psImage *luMatrix = psMatrixLUD(NULL, &permutation, matrix); // LU decomposed matrix
    871872    psVector *xSolution = psMatrixLUSolve(NULL, luMatrix, xVector, permutation); // Solution in x
    872873    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     //
    877874
    878875    //
  • trunk/psLib/src/imageops/psImageStats.c

    r6306 r6346  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.89 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-02-02 21:11:13 $
     11 *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-02-07 23:14:21 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    600600    } else if (coeffs->type == PS_POLYNOMIAL_CHEB) {
    601601        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    }
    605605    return(NULL);
    606606}
  • trunk/psLib/src/math/psMinimizeLMM.c

    r6322 r6346  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-02-03 22:05:22 $
     12 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-02-07 23:14:21 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    513513}
    514514
    515 // XXX EAM : temporary gauss-jordan solver based on gene's
     515// This is a temporary gauss-jordan solver based on gene's
    516516// version based on the Numerical Recipes version
    517517bool psGaussJordan(
  • trunk/psLib/src/math/psMinimizePowell.c

    r6322 r6346  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-02-03 22:05:22 $
     11 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-02-07 23:14:21 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    740740    psMinimization *min,
    741741    psVector *params,
    742     const psVector *paramMask,
     742    psMinConstrain *constrain,
    743743    const psArray *coords,
    744744    const psVector *value,
     
    751751    Chi2PowellFunc = model;
    752752
    753     return(psMinimizePowell(min, params, paramMask, coords, myPowellChi2Func));
     753    return(psMinimizePowell(min, params, constrain->paramMask, coords, myPowellChi2Func));
    754754}
    755755
  • trunk/psLib/src/math/psMinimizePowell.h

    r6185 r6346  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-01-23 20:44:29 $
     10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-02-07 23:14:21 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8181    psMinimization *min,               ///< Minimization specification
    8282    psVector *params,                  ///< "Best guess" for parameters that minimize func
    83     const psVector *paramMask,         ///< Parameters to be held fixed by minimizer
     83    psMinConstrain *constrain,
    8484    const psArray *coords,             ///< Measurement coordinates
    8585    const psVector *value,             ///< Measured values at the coordinates
  • trunk/psLib/test/math/tst_psMinimizePowell.c

    r6332 r6346  
    55 
    66    XXX: Must verify the stderr for the NULL parameter tests.
     7    XXX: psMinimizeChi2Powell() is untested.
    78 *****************************************************************************/
    89#include <stdio.h>
Note: See TracChangeset for help on using the changeset viewer.