IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 27, 2004, 1:41:42 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomial.c

    r1903 r1907  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-25 23:05:07 $
     9 *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-27 23:41:42 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    111111/*****************************************************************************/
    112112
    113 static psPolynomial1D* *CreateChebyshevPolys(int maxChebyPoly)
     113/*****************************************************************************
     114CreateChebyshevPolys(n): this routine takes as input the required order n,
     115and returns as output as a pointer to an array of n psPolynomial1D
     116structures, corresponding to the first n Chebyshev polynomials.
     117 
     118XXX: The output should be static since the Chebyshev polynomials might be
     119used frequently and the data structure created here does not contain the
     120outer coefficients of the Chebyshev polynomials.
     121 *****************************************************************************/
     122static psPolynomial1D **CreateChebyshevPolys(int maxChebyPoly)
    114123{
    115124    psPolynomial1D **chebPolys = NULL;
     
    430439    Polynomial coefficients will be accessed in [w][x][y][z] fashion.
    431440 
    432     XXX: Determine, from IfA, whether or not the "mask[]" terms should be used
    433     in polynomial evaluation.  If so, then all of the following polynomial
    434     evaluation functions must be modified to do so.
    435  
    436441    XXX: Should the "coeffErr[]" should be used as well?
    437442 *****************************************************************************/
     
    502507    psFree(d);
    503508    return(tmp);
     509    /*
     510        int n;
     511        int i;
     512        float tmp;
     513        psPolynomial1D **chebPolys = NULL;
     514     
     515        n = myPoly->n;
     516        chebPolys = CreateChebyshevPolys(n);
     517     
     518        tmp = 0.0;
     519        for (i=0;i<myPoly->n;i++) {
     520            tmp+= (myPoly->coeff[i] * psPolynomial1DEval(x, chebPolys[i]));
     521        }
     522        tmp-= (myPoly->coeff[0]/2.0);
     523        return(tmp);
     524    */
    504525}
    505526
Note: See TracChangeset for help on using the changeset viewer.