Changeset 2204 for trunk/psLib/src/math/psSpline.h
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psSpline.h (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psSpline.h
r1968 r2204 12 12 * @author George Gusciora, MHPCC 13 13 * 14 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10- 06 00:48:15$14 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-27 00:57:31 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 45 45 float mean, ///< Mean for the Gaussian 46 46 float stddev, ///< Standard deviation for the Gaussian 47 bool normal ///< Indicates whether result should be normalized47 psBool normal ///< Indicates whether result should be normalized 48 48 ); 49 49 … … 57 57 float mean, ///< The mean of the Gaussian 58 58 float sigma, ///< The sigma of the Gaussian 59 intNpts ///< The size of the vector59 psS32 Npts ///< The size of the vector 60 60 ); 61 61 … … 69 69 { 70 70 psPolynomialType type; ///< Polynomial type 71 intn; ///< Number of terms71 psS32 n; ///< Number of terms 72 72 float *coeff; ///< Coefficients 73 73 float *coeffErr; ///< Error in coefficients … … 80 80 { 81 81 psPolynomialType type; ///< Polynomial type 82 intnX; ///< Number of terms in x83 intnY; ///< Number of terms in y82 psS32 nX; ///< Number of terms in x 83 psS32 nY; ///< Number of terms in y 84 84 float **coeff; ///< Coefficients 85 85 float **coeffErr; ///< Error in coefficients … … 92 92 { 93 93 psPolynomialType type; ///< Polynomial type 94 intnX; ///< Number of terms in x95 intnY; ///< Number of terms in y96 intnZ; ///< Number of terms in z94 psS32 nX; ///< Number of terms in x 95 psS32 nY; ///< Number of terms in y 96 psS32 nZ; ///< Number of terms in z 97 97 float ***coeff; ///< Coefficients 98 98 float ***coeffErr; ///< Error in coefficients … … 105 105 { 106 106 psPolynomialType type; ///< Polynomial type 107 intnW; ///< Number of terms in w108 intnX; ///< Number of terms in x109 intnY; ///< Number of terms in y110 intnZ; ///< Number of terms in z107 psS32 nW; ///< Number of terms in w 108 psS32 nX; ///< Number of terms in x 109 psS32 nY; ///< Number of terms in y 110 psS32 nZ; ///< Number of terms in z 111 111 float ****coeff; ///< Coefficients 112 112 float ****coeffErr; ///< Error in coefficients … … 121 121 */ 122 122 psPolynomial1D* psPolynomial1DAlloc( 123 intn, ///< Number of terms123 psS32 n, ///< Number of terms 124 124 psPolynomialType type ///< Polynomial Type 125 125 ); … … 130 130 */ 131 131 psPolynomial2D* psPolynomial2DAlloc( 132 intnX, ///< Number of terms in x133 intnY, ///< Number of terms in y132 psS32 nX, ///< Number of terms in x 133 psS32 nY, ///< Number of terms in y 134 134 psPolynomialType type ///< Polynomial Type 135 135 ); … … 140 140 */ 141 141 psPolynomial3D* psPolynomial3DAlloc( 142 intnX, ///< Number of terms in x143 intnY, ///< Number of terms in y144 intnZ, ///< Number of terms in z142 psS32 nX, ///< Number of terms in x 143 psS32 nY, ///< Number of terms in y 144 psS32 nZ, ///< Number of terms in z 145 145 psPolynomialType type ///< Polynomial Type 146 146 ); … … 151 151 */ 152 152 psPolynomial4D* psPolynomial4DAlloc( 153 intnW, ///< Number of terms in w154 intnX, ///< Number of terms in x155 intnY, ///< Number of terms in y156 intnZ, ///< Number of terms in z153 psS32 nW, ///< Number of terms in w 154 psS32 nX, ///< Number of terms in x 155 psS32 nY, ///< Number of terms in y 156 psS32 nZ, ///< Number of terms in z 157 157 psPolynomialType type ///< Polynomial Type 158 158 ); … … 230 230 { 231 231 psPolynomialType type; ///< Polynomial type 232 intn; ///< Number of terms232 psS32 n; ///< Number of terms 233 233 double *coeff; ///< Coefficients 234 234 double *coeffErr; ///< Error in coefficients … … 241 241 { 242 242 psPolynomialType type; ///< Polynomial type 243 intnX; ///< Number of terms in x244 intnY; ///< Number of terms in y243 psS32 nX; ///< Number of terms in x 244 psS32 nY; ///< Number of terms in y 245 245 double **coeff; ///< Coefficients 246 246 double **coeffErr; ///< Error in coefficients … … 253 253 { 254 254 psPolynomialType type; ///< Polynomial type 255 intnX; ///< Number of terms in x256 intnY; ///< Number of terms in y257 intnZ; ///< Number of terms in z255 psS32 nX; ///< Number of terms in x 256 psS32 nY; ///< Number of terms in y 257 psS32 nZ; ///< Number of terms in z 258 258 double ***coeff; ///< Coefficients 259 259 double ***coeffErr; ///< Error in coefficients … … 266 266 { 267 267 psPolynomialType type; ///< Polynomial type 268 intnW; ///< Number of terms in w269 intnX; ///< Number of terms in x270 intnY; ///< Number of terms in y271 intnZ; ///< Number of terms in z268 psS32 nW; ///< Number of terms in w 269 psS32 nX; ///< Number of terms in x 270 psS32 nY; ///< Number of terms in y 271 psS32 nZ; ///< Number of terms in z 272 272 double ****coeff; ///< Coefficients 273 273 double ****coeffErr; ///< Error in coefficients … … 281 281 */ 282 282 psDPolynomial1D* psDPolynomial1DAlloc( 283 intn, ///< Number of terms283 psS32 n, ///< Number of terms 284 284 psPolynomialType type ///< Polynomial Type 285 285 ); … … 290 290 */ 291 291 psDPolynomial2D* psDPolynomial2DAlloc( 292 intnX, ///< Number of terms in x293 intnY, ///< Number of terms in y292 psS32 nX, ///< Number of terms in x 293 psS32 nY, ///< Number of terms in y 294 294 psPolynomialType type ///< Polynomial Type 295 295 ); … … 300 300 */ 301 301 psDPolynomial3D* psDPolynomial3DAlloc( 302 intnX, ///< Number of terms in x303 intnY, ///< Number of terms in y304 intnZ, ///< Number of terms in z302 psS32 nX, ///< Number of terms in x 303 psS32 nY, ///< Number of terms in y 304 psS32 nZ, ///< Number of terms in z 305 305 psPolynomialType type ///< Polynomial Type 306 306 ); … … 311 311 */ 312 312 psDPolynomial4D* psDPolynomial4DAlloc( 313 intnW, ///< Number of terms in w314 intnX, ///< Number of terms in x315 intnY, ///< Number of terms in y316 intnZ, ///< Number of terms in z313 psS32 nW, ///< Number of terms in w 314 psS32 nX, ///< Number of terms in x 315 psS32 nY, ///< Number of terms in y 316 psS32 nZ, ///< Number of terms in z 317 317 psPolynomialType type ///< Polynomial Type 318 318 ); … … 386 386 typedef struct 387 387 { 388 intn; ///< The number of spline polynomials388 psS32 n; ///< The number of spline polynomials 389 389 psPolynomial1D **spline; ///< An array of n pointers to the spline polynomials 390 390 float *p_psDeriv2; ///< For cubic splines, the second derivative at each domain point. Size is n+1. … … 393 393 psSpline1D; 394 394 395 psSpline1D *psSpline1DAlloc( intn,396 intorder,395 psSpline1D *psSpline1DAlloc(psS32 n, 396 psS32 order, 397 397 float min, 398 398 float max); 399 399 400 intp_psSpline1DFree(psSpline1D *tmpSpline);400 psS32 p_psSpline1DFree(psSpline1D *tmpSpline); 401 401 402 402 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, 403 intorder);403 psS32 order); 404 404 405 405 float psSpline1DEval(const psSpline1D *spline, … … 409 409 const psSpline1D *spline); 410 410 411 intp_psVectorBinDisectF32(float *bins,412 intnumBins,413 float x);414 415 int p_psVectorBinDisectS32(int*bins,416 intnumBins,417 intx);418 419 intp_psVectorBinDisect(psVector *bins,420 psScalar *x);411 psS32 p_psVectorBinDisectF32(float *bins, 412 psS32 numBins, 413 float x); 414 415 psS32 p_psVectorBinDisectS32(psS32 *bins, 416 psS32 numBins, 417 psS32 x); 418 419 psS32 p_psVectorBinDisect(psVector *bins, 420 psScalar *x); 421 421 422 422 psScalar *p_psVectorInterpolate(psVector *domain, 423 423 psVector *range, 424 intorder,424 psS32 order, 425 425 psScalar *x); 426 426
Note:
See TracChangeset
for help on using the changeset viewer.
