IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4570


Ignore:
Timestamp:
Jul 15, 2005, 2:42:28 PM (21 years ago)
Author:
gusciora
Message:

Mods to thespline code.

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

Legend:

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

    r4568 r4570  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-07-16 00:06:32 $
     9 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-07-16 00:42:28 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    18291829                            float max)
    18301830{
    1831     printf("HEY: psSpline1DAlloc()\n");
    18321831    PS_ASSERT_INT_NONNEGATIVE(numSplines, NULL);
    18331832    PS_ASSERT_INT_NONNEGATIVE(order, NULL);
     
    18531852    //
    18541853    tmpSpline->knots = psVectorAlloc(numSplines+1, PS_TYPE_F32);
    1855     if (tmpSpline->knots == NULL) {
    1856         printf("BAD\n");
    1857     } else {
    1858         printf("GOOD\n");
    1859     }
    18601854    psF32 width = (max - min) / ((psF32) numSplines);
    18611855    tmpSpline->knots->data.F32[0] = min;
     
    18971891                                   int order)
    18981892{
    1899     printf("HEY: psSpline1DAllocGeneric()\n");
    19001893    PS_ASSERT_VECTOR_NON_NULL(bounds, NULL);
    19011894    PS_ASSERT_VECTOR_NON_EMPTY(bounds, NULL);
     
    19301923    }
    19311924    tmpSpline->knots = PsVectorDup((psVector *) bounds);
    1932     if (tmpSpline->knots == NULL) {
    1933         printf("BAD\n");
    1934     } else {
    1935         printf("GOOD\n");
    1936     }
    19371925
    19381926    psMemSetDeallocator(tmpSpline, (psFreeFunc)spline1DFree);
  • trunk/psLib/src/math/psMinimize.c

    r4568 r4570  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.125 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-07-16 00:06:32 $
     11 *  @version $Revision: 1.126 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-07-16 00:42:28 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/math/psMinimize.h

    r4540 r4570  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-07-12 19:12:01 $
     10 *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-07-16 00:42:28 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9393    const psVector* yErr               ///< Errors in coordinates, or NULL
    9494);
     95psSpline1D *psVectorFitSpline1DNEW(
     96    const psVector* x,                 ///< Ordinates (or NULL to just use the indices)
     97    const psVector* y,                 ///< Coordinates
     98    int nKnots
     99);
    95100
    96101/** Specifies the format of a user-defined function that the general Levenberg-
Note: See TracChangeset for help on using the changeset viewer.