IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1345


Ignore:
Timestamp:
Jul 29, 2004, 2:39:18 PM (22 years ago)
Author:
evanalst
Message:

Function name change psGetArrayPolynomial to psVectorFitPolynomial1D.

Location:
trunk/psLib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r1277 r1345  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-07-22 23:40:08 $
     11 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-07-30 00:39:14 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    869869 *****************************************************************************/
    870870psPolynomial1D *
    871 psGetArrayPolynomial(psPolynomial1D *myPoly,
    872                      const psVector *restrict x,
    873                      const psVector *restrict y,
    874                      const psVector *restrict yErr)
     871psVectorFitPolynomial1D(psPolynomial1D *myPoly,
     872                        const psVector *restrict x,
     873                        const psVector *restrict y,
     874                        const psVector *restrict yErr)
    875875{
    876876    int polyOrder = myPoly->n;
     
    886886    psVector *xSums = NULL;
    887887
    888     //    printf("psGetArrayPolynomial()\n");
     888    //    printf("psVectorFitPolynomial1D()\n");
    889889    //    for (i=0;i<x->n;i++) {
    890890    //        printf("(x, y, yErr) is (%f, %f, %f)\n", x->data.F64[i], y->data.F64[i], yErr->data.F64[i]);
  • trunk/psLib/src/dataManip/psMinimize.h

    r1281 r1345  
    3939/** Derive a polynomial fit by chi^2 minimisation (analytically) */
    4040psPolynomial1D *
    41 psGetArrayPolynomial(psPolynomial1D *myPoly, ///< Polynomial to fit
    42                      const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
    43                      const psVector *restrict y, ///< Coordinates
    44                      const psVector *restrict yErr ///< Errors in coordinates, or NULL
    45                     );
     41psVectorFitPolynomial1D(psPolynomial1D *myPoly, ///< Polynomial to fit
     42                        const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
     43                        const psVector *restrict y, ///< Coordinates
     44                        const psVector *restrict yErr ///< Errors in coordinates, or NULL
     45                       );
    4646
    4747/* \} */ // End of MathGroup Functions
  • trunk/psLib/src/math/psMinimize.c

    r1278 r1345  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-07-22 23:40:08 $
     11 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-07-30 00:39:14 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    869869 *****************************************************************************/
    870870psPolynomial1D *
    871 psGetArrayPolynomial(psPolynomial1D *myPoly,
    872                      const psVector *restrict x,
    873                      const psVector *restrict y,
    874                      const psVector *restrict yErr)
     871psVectorFitPolynomial1D(psPolynomial1D *myPoly,
     872                        const psVector *restrict x,
     873                        const psVector *restrict y,
     874                        const psVector *restrict yErr)
    875875{
    876876    int polyOrder = myPoly->n;
     
    886886    psVector *xSums = NULL;
    887887
    888     //    printf("psGetArrayPolynomial()\n");
     888    //    printf("psVectorFitPolynomial1D()\n");
    889889    //    for (i=0;i<x->n;i++) {
    890890    //        printf("(x, y, yErr) is (%f, %f, %f)\n", x->data.F64[i], y->data.F64[i], yErr->data.F64[i]);
  • trunk/psLib/src/math/psMinimize.h

    r1281 r1345  
    3939/** Derive a polynomial fit by chi^2 minimisation (analytically) */
    4040psPolynomial1D *
    41 psGetArrayPolynomial(psPolynomial1D *myPoly, ///< Polynomial to fit
    42                      const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
    43                      const psVector *restrict y, ///< Coordinates
    44                      const psVector *restrict yErr ///< Errors in coordinates, or NULL
    45                     );
     41psVectorFitPolynomial1D(psPolynomial1D *myPoly, ///< Polynomial to fit
     42                        const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
     43                        const psVector *restrict y, ///< Coordinates
     44                        const psVector *restrict yErr ///< Errors in coordinates, or NULL
     45                       );
    4646
    4747/* \} */ // End of MathGroup Functions
  • trunk/psLib/test/dataManip/tst_psMinimize04.c

    r1190 r1345  
    11/*****************************************************************************
    2     This routine must ensure that the psGetArrayPolynomial works correctly.
     2    This routine must ensure that the psVectorFitPolynomial1D works correctly.
    33 *****************************************************************************/
    44#include <stdio.h>
     
    4545    }
    4646
    47     psGetArrayPolynomial(myPoly, x, y, yErr);
     47    psVectorFitPolynomial1D(myPoly, x, y, yErr);
    4848
    4949    for (i=0;i<POLY_ORDER+1;i++) {
Note: See TracChangeset for help on using the changeset viewer.