IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 9, 2004, 12:20:31 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

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

    r1755 r1763  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-09 03:38:07 $
     9 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-09 22:20:31 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    17131713    return(tmpVector);
    17141714}
     1715
     1716
     1717
     1718psSpline1D *psSpline1DEGen(const psSpline1D *spline,
     1719                           psVector *data)
     1720{
     1721    int i;
     1722    if (data->n != (1 + spline->n)) {
     1723        psLogMsg(__func__, PS_LOG_WARN,
     1724                 "data size / spline size mismatch (%d %d)\n",
     1725                 data->n, spline->n);
     1726        return(NULL);
     1727    }
     1728    if (1 == (spline->spline[0])->n) {
     1729        psLogMsg(__func__, PS_LOG_WARN,
     1730                 "Linear splines have not been implemented.");
     1731        return(NULL);
     1732        for (i=0;i<spline->n;i++) {}
     1733
     1734    }
     1735    else if (3 == (spline->spline[0])->n) {
     1736        psLogMsg(__func__, PS_LOG_WARN,
     1737                 "Cubic splines have not been implemented.");
     1738        return(NULL);
     1739    } else {
     1740        psLogMsg(__func__, PS_LOG_WARN,
     1741                 "Don't know how to generate %d-order splines.",
     1742                 (spline->spline[0])->n);
     1743        return(NULL);
     1744    }
     1745}
Note: See TracChangeset for help on using the changeset viewer.