Changeset 8245 for trunk/psLib/src/math/psPolynomial.c
- Timestamp:
- Aug 8, 2006, 4:26:44 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomial.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomial.c
r8232 r8245 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.14 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-08-0 8 23:32:23$9 * @version $Revision: 1.149 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-08-09 02:26:44 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 217 217 psF64 xSum = 1.0; 218 218 219 psTrace( __func__, 4, "---- %s() begin ----\n", __func__);220 psTrace( __func__, 4, "Polynomial order is %u\n", poly->nX);219 psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); 220 psTrace("psLib.math", 4, "Polynomial order is %u\n", poly->nX); 221 221 for (loop_x = 0; loop_x < poly->nX+1; loop_x++) { 222 psTrace( __func__, 4, "Polynomial coeff[%u] is %lf\n", loop_x, poly->coeff[loop_x]);222 psTrace("psLib.math", 4, "Polynomial coeff[%u] is %lf\n", loop_x, poly->coeff[loop_x]); 223 223 } 224 224 225 225 for (loop_x = 0; loop_x < poly->nX+1; loop_x++) { 226 226 if (poly->mask[loop_x] == 0) { 227 psTrace( __func__, 8,227 psTrace("psLib.math", 8, 228 228 "polysum+= sum*coeff [%lf+= (%lf * %lf)\n", polySum, xSum, poly->coeff[loop_x]); 229 229 polySum += xSum * poly->coeff[loop_x]; … … 232 232 } 233 233 234 psTrace( __func__, 4, "---- %s() end ----\n", __func__);234 psTrace("psLib.math", 4, "---- %s() end ----\n", __func__); 235 235 return(polySum); 236 236 } … … 571 571 psF32 tmp = 1.0; 572 572 573 psTrace( __func__, 4, "---- %s() begin ----\n", __func__);573 psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); 574 574 575 575 if (normal == true) { … … 577 577 } 578 578 579 psTrace( __func__, 4, "---- %s() end ----\n", __func__);579 psTrace("psLib.math", 4, "---- %s() end ----\n", __func__); 580 580 return(tmp * exp(-((x - mean) * (x - mean)) / (2.0 * sigma * sigma))); 581 581 }
Note:
See TracChangeset
for help on using the changeset viewer.
