IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2005, 4:55:54 PM (21 years ago)
Author:
gusciora
Message:

New version of spline fit functions in the SDRS.

File:
1 edited

Legend:

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

    r4570 r4580  
    11/** @file  psFunctions.c
    2  *
    3  *  @brief Contains basic function allocation, deallocation, and evaluation
    4  *         routines.
    5  *
    6  *  This file will hold the functions for allocated, freeing, and evaluating
    7  *  polynomials.  It also contains a Gaussian functions.
    8  *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-07-16 00:42:28 $
    11  *
    12  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    13  *
    14  *  XXX: Should the "coeffErr[]" be used as well?  Bug ???.  Ignore coeffErr
    15  *
    16  *  XXX: In the various polyAlloc(n) functions, n is really the order of the
    17  *  polynomial plus 1.  To create a 2nd-order polynomial, n == 3.
    18  */
     2*
     3*  @brief Contains basic function allocation, deallocation, and evaluation
     4*         routines.
     5*
     6*  This file will hold the functions for allocated, freeing, and evaluating
     7*  polynomials.  It also contains a Gaussian functions.
     8*
     9*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2005-07-19 02:55:54 $
     11*
     12*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     13*
     14*  XXX: Should the "coeffErr[]" be used as well?  Bug ???.  Ignore coeffErr
     15*
     16*  XXX: In the various polyAlloc(n) functions, n is really the order of the
     17*  polynomial plus 1.  To create a 2nd-order polynomial, n == 3.
     18*/
    1919/*****************************************************************************/
    2020/*  INCLUDE FILES                                                            */
     
    19181918    for (psS32 i=0;i<bounds->n-1;i++) {
    19191919        if (FLT_EPSILON >= fabs(bounds->data.F32[i+1]-bounds->data.F32[i])) {
    1920             psError(PS_ERR_UNKNOWN, true, "data points must be distinct\n");
     1920            psError(PS_ERR_UNKNOWN, true, "data points must be distinct ([%d] %f %f)\n", i, bounds->data.F32[i], bounds->data.F32[i+1]);
    19211921            return(NULL);
    19221922        }
Note: See TracChangeset for help on using the changeset viewer.