IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2009, 6:15:31 PM (17 years ago)
Author:
beaumont
Message:

merged with head

Location:
branches/cnb_branches/cnb_branch_20090301
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090301

  • branches/cnb_branches/cnb_branch_20090301/psLib/src/math/psSpline.c

    r12434 r23594  
    103103tabulated function at n points, this routine calculates the second
    104104derivatives of the interpolating cubic splines at those n points.
    105  
     105
    106106The first and second derivatives at the endpoints were previously undefined in
    107107the SDR.  From bugzilla #???, they are required to be 0.0, implementing natural
    108108splines.
    109  
     109
    110110Endpoints are defined by
    111111    PS_LEFT_SPLINE_DERIV
    112112    PS_RIGHT_SPLINE_DERIV
    113  
     113
    114114This routine assumes that vectors x and y are of the appropriate types/sizes
    115115(F32).
    116  
     116
    117117XXX: use recycled vectors for internal data.
    118118XXX: do an F64 version?
     
    177177}
    178178
    179 psSpline1D *psSpline1DAlloc()
     179psSpline1D *psSpline1DAlloc(void)
    180180{
    181181    psSpline1D *tmpSpline = (psSpline1D *) psAlloc(sizeof(psSpline1D));
     
    192192psVectorFitSpline1D(): given a set of x/y vectors, this routine generates the
    193193linear or cublic splines which satisfy those data points.
    194  
     194
    195195The formula for calculating the spline polynomials is derived from Numerical
    196196Recipes in C.  The basic idea is that the polynomial is
     
    206206into a polynomial in terms of x, and then saving the coefficients of the
    207207powers of x in the spline polynomials.  This gets pretty complicated.
    208  
     208
    209209XXX: What types must be supported?
    210210 *****************************************************************************/
     
    354354(vectorBinDisectF32()).  Then it evaluates the spline at that x location
    355355by a call to the 1D polynomial functions.
    356  
     356
    357357XXX: The spline eval functions require input and output to be F32.  however
    358358     the spline fit functions require F32 and F64.
    359  
     359
    360360XXX: This only works if spline->knots if psF32.  Must we add support for psU32 and
    361361psF64?
Note: See TracChangeset for help on using the changeset viewer.