Changeset 4580 for trunk/psLib/src/math
- Timestamp:
- Jul 18, 2005, 4:55:54 PM (21 years ago)
- Location:
- trunk/psLib/src/math
- Files:
-
- 2 edited
-
psFunctions.c (modified) (2 diffs)
-
psMinimize.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psFunctions.c
r4570 r4580 1 1 /** @file psFunctions.c 2 *3 * @brief Contains basic function allocation, deallocation, and evaluation4 * routines.5 *6 * This file will hold the functions for allocated, freeing, and evaluating7 * 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 Hawaii13 *14 * XXX: Should the "coeffErr[]" be used as well? Bug ???. Ignore coeffErr15 *16 * XXX: In the various polyAlloc(n) functions, n is really the order of the17 * 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 */ 19 19 /*****************************************************************************/ 20 20 /* INCLUDE FILES */ … … 1918 1918 for (psS32 i=0;i<bounds->n-1;i++) { 1919 1919 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]); 1921 1921 return(NULL); 1922 1922 } -
trunk/psLib/src/math/psMinimize.c
r4570 r4580 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.12 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-07-1 6 00:42:28$11 * @version $Revision: 1.127 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-07-19 02:55:54 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 520 520 psVector *y32 = yPtr; 521 521 522 523 522 // If these are linear splines, which means their polynomials will have 524 523 // two coefficients, then we do the simple calculation. … … 638 637 psTrace(".psLib.dataManip.psVectorFitSpline1D", 4, 639 638 "---- psVectorFitSpline1D() end ----\n"); 639 640 640 return(mySpline); 641 641 }
Note:
See TracChangeset
for help on using the changeset viewer.
