IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2004, 12:33:21 PM (22 years ago)
Author:
gusciora
Message:

Changed order of spline eval functions.

Location:
trunk/psLib/src/dataManip
Files:
3 edited

Legend:

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

    r2433 r2439  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-11-24 21:59:43 $
     9 *  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-11-24 22:33:21 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    … …  
    21122112     the spline fit functions require F32 and F64.
    21132113 *****************************************************************************/
    2114 float psSpline1DEval(const psSpline1D *spline,
    2115                      float x)
     2114float psSpline1DEval(
     2115    float x,
     2116    const psSpline1D *spline
     2117)
    21162118{
    21172119    PS_PTR_CHECK_NULL(spline, NAN);
    … …  
    21442146// XXX: The spline eval functions require input and output to be F32.
    21452147// however the spline fit functions require F32 and F64.
    2146 psVector *psSpline1DEvalVector(const psVector *x,
    2147                                const psSpline1D *spline)
     2148psVector *psSpline1DEvalVector(
     2149    const psSpline1D *spline,
     2150    const psVector *x
     2151)
    21482152{
    21492153    PS_PTR_CHECK_NULL(spline, NULL);
    … …  
    21572161    if (x->type.type == PS_TYPE_F32) {
    21582162        for (i=0;i<x->n;i++) {
    2159             tmpVector->data.F32[i] = psSpline1DEval(spline, x->data.F32[i]);
     2163            tmpVector->data.F32[i] = psSpline1DEval(
     2164                                         x->data.F32[i],
     2165                                         spline
     2166                                     );
    21602167        }
    21612168    } else if (x->type.type == PS_TYPE_F64) {
    21622169        for (i=0;i<x->n;i++) {
    2163             tmpVector->data.F32[i] = psSpline1DEval(spline, (float) x->data.F64[i]);
     2170            tmpVector->data.F32[i] = psSpline1DEval(
     2171                                         (float) x->data.F64[i],
     2172                                         spline
     2173                                     );
    21642174        }
    21652175    } else {
  • trunk/psLib/src/dataManip/psFunctions.h

    r2433 r2439  
    1212*  @author George Gusciora, MHPCC
    1313*
    14 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-11-24 21:59:43 $
     14*  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-11-24 22:33:21 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    … …  
    409409                                   psS32 order);
    410410
    411 float psSpline1DEval(const psSpline1D *spline,
    412                      float x);
    413 
    414 psVector *psSpline1DEvalVector(const psVector *x,
    415                                const psSpline1D *spline);
     411float psSpline1DEval(
     412    float x,
     413    const psSpline1D *spline
     414);
     415
     416psVector *psSpline1DEvalVector(
     417    const psSpline1D *spline,
     418    const psVector *x
     419);
    416420
    417421psS32 p_psVectorBinDisect(psVector *bins,
  • trunk/psLib/src/dataManip/psMinimize.c

    r2438 r2439  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-11-24 22:22:38 $
     11 *  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-11-24 22:33:21 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Note: See TracChangeset for help on using the changeset viewer.