Changeset 2439 for trunk/psLib/src/dataManip/psFunctions.c
- Timestamp:
- Nov 24, 2004, 12:33:21 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psFunctions.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psFunctions.c
r2433 r2439 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1. 69$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-11-24 2 1:59:43$9 * @version $Revision: 1.70 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-11-24 22:33:21 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 2112 2112 the spline fit functions require F32 and F64. 2113 2113 *****************************************************************************/ 2114 float psSpline1DEval(const psSpline1D *spline, 2115 float x) 2114 float psSpline1DEval( 2115 float x, 2116 const psSpline1D *spline 2117 ) 2116 2118 { 2117 2119 PS_PTR_CHECK_NULL(spline, NAN); … … 2144 2146 // XXX: The spline eval functions require input and output to be F32. 2145 2147 // however the spline fit functions require F32 and F64. 2146 psVector *psSpline1DEvalVector(const psVector *x, 2147 const psSpline1D *spline) 2148 psVector *psSpline1DEvalVector( 2149 const psSpline1D *spline, 2150 const psVector *x 2151 ) 2148 2152 { 2149 2153 PS_PTR_CHECK_NULL(spline, NULL); … … 2157 2161 if (x->type.type == PS_TYPE_F32) { 2158 2162 for (i=0;i<x->n;i++) { 2159 tmpVector->data.F32[i] = psSpline1DEval(spline, x->data.F32[i]); 2163 tmpVector->data.F32[i] = psSpline1DEval( 2164 x->data.F32[i], 2165 spline 2166 ); 2160 2167 } 2161 2168 } else if (x->type.type == PS_TYPE_F64) { 2162 2169 for (i=0;i<x->n;i++) { 2163 tmpVector->data.F32[i] = psSpline1DEval(spline, (float) x->data.F64[i]); 2170 tmpVector->data.F32[i] = psSpline1DEval( 2171 (float) x->data.F64[i], 2172 spline 2173 ); 2164 2174 } 2165 2175 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
