Changeset 4447 for trunk/psLib/src/dataManip/psFunctions.h
- Timestamp:
- Jul 1, 2005, 12:01:17 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psFunctions.h (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psFunctions.h
r4426 r4447 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.5 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 6-29 03:23:19$14 * @version $Revision: 1.52 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-07-01 22:01:17 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 74 74 { 75 75 psPolynomialType type; ///< Polynomial type 76 unsigned int n; ///< Number of terms 76 psElemType ctype; ///< Polynomial precision 77 unsigned int n; ///< Number of terms 77 78 psF32 *coeff; ///< Coefficients 78 79 psF32 *coeffErr; ///< Error in coefficients 79 psU8*mask; ///< Coefficient mask80 char *mask; ///< Coefficient mask 80 81 } 81 82 psPolynomial1D; … … 85 86 { 86 87 psPolynomialType type; ///< Polynomial type 88 psElemType ctype; ///< Polynomial precision 87 89 unsigned int nX; ///< Number of terms in x 88 90 unsigned int nY; ///< Number of terms in y 89 91 psF32 **coeff; ///< Coefficients 90 92 psF32 **coeffErr; ///< Error in coefficients 91 psU8**mask; ///< Coefficients mask93 char **mask; ///< Coefficients mask 92 94 } 93 95 psPolynomial2D; … … 97 99 { 98 100 psPolynomialType type; ///< Polynomial type 101 psElemType ctype; ///< Polynomial precision 99 102 unsigned int nX; ///< Number of terms in x 100 103 unsigned int nY; ///< Number of terms in y … … 102 105 psF32 ***coeff; ///< Coefficients 103 106 psF32 ***coeffErr; ///< Error in coefficients 104 psU8***mask; ///< Coefficients mask107 char ***mask; ///< Coefficients mask 105 108 } 106 109 psPolynomial3D; … … 110 113 { 111 114 psPolynomialType type; ///< Polynomial type 115 psElemType ctype; ///< Polynomial precision 112 116 unsigned int nX; ///< Number of terms in x 113 117 unsigned int nY; ///< Number of terms in y … … 116 120 psF32 ****coeff; ///< Coefficients 117 121 psF32 ****coeffErr; ///< Error in coefficients 118 psU8****mask; ///< Coefficients mask122 char ****mask; ///< Coefficients mask 119 123 } 120 124 psPolynomial4D; … … 206 210 207 211 /** Evaluates a 1-D polynomial at specific sets of coordinates 208 * 212 * 209 213 * @return psVector* results of polynomials at given locations 210 214 */ … … 215 219 216 220 /** Evaluates a 2-D polynomial at specific sets of coordinates 217 * 221 * 218 222 * @return psVector* results of polynomial at given locations 219 223 */ … … 225 229 226 230 /** Evaluates a 3-D polynomial at specific sets of coordinates 227 * 231 * 228 232 * @return psVector* results of polynomial at given locations 229 233 */ … … 236 240 237 241 /** Evaluates a 4-D polynomial at specific sets of coordinates 238 * 242 * 239 243 * @return psVector* results of polynomial at given locations 240 244 */ … … 258 262 psF64 *coeff; ///< Coefficients 259 263 psF64 *coeffErr; ///< Error in coefficients 260 psU8*mask; ///< Coefficient mask264 char *mask; ///< Coefficient mask 261 265 } 262 266 psDPolynomial1D; … … 270 274 psF64 **coeff; ///< Coefficients 271 275 psF64 **coeffErr; ///< Error in coefficients 272 psU8**mask; ///< Coefficients mask276 char **mask; ///< Coefficients mask 273 277 } 274 278 psDPolynomial2D; … … 283 287 psF64 ***coeff; ///< Coefficients 284 288 psF64 ***coeffErr; ///< Error in coefficients 285 psU8***mask; ///< Coefficient mask289 char ***mask; ///< Coefficient mask 286 290 } 287 291 psDPolynomial3D; … … 297 301 psF64 ****coeff; ///< Coefficients 298 302 psF64 ****coeffErr; ///< Error in coefficients 299 psU8****mask; ///< Coefficients mask303 char ****mask; ///< Coefficients mask 300 304 } 301 305 psDPolynomial4D; … … 386 390 387 391 /** Evaluates a double-precision 1-D polynomial at specific sets of coordinates. 388 * 392 * 389 393 * @return psVector* results of polynomial at given locations 390 394 */ … … 395 399 396 400 /** Evaluates a double-precision 2-D polynomial at specific sets of coordinates. 397 * 401 * 398 402 * @return psVector* results of polynomial at given locations 399 403 */ … … 405 409 406 410 /** Evaluates a double-precision 3-D polynomial at specific sets of coordinates. 407 * 411 * 408 412 * @return psVector* results of polynomial at given locations 409 413 */ … … 416 420 417 421 /** Evaluates a double-precision 4-D polynomial at specific sets of coordinates. 418 * 422 * 419 423 * @return psVector* results of polynomial at given locations 420 424 */ … … 430 434 typedef struct 431 435 { 432 psS32 n;///< The number of spline polynomials436 unsigned int n; ///< The number of spline polynomials 433 437 psPolynomial1D **spline; ///< An array of n pointers to the spline polynomials 434 438 psF32 *p_psDeriv2; ///< For cubic splines, the second derivative at each domain point. Size is n+1. … … 439 443 440 444 /** Allocates a psSpline1D structure 441 * 445 * 442 446 * Allocator for psSpline1D where the bounds are implicitly specified through specifying 443 447 * min and max values along with the number of splines. … … 446 450 */ 447 451 psSpline1D *psSpline1DAlloc( 448 int n,///< Number of spline polynomials449 int order,///< Order of spline polynomials452 unsigned int n, ///< Number of spline polynomials 453 unsigned int order, ///< Order of spline polynomials 450 454 float min, ///< Lower boundary value of spline polynomials 451 455 float max ///< Upper boundary value of spline polynomials … … 453 457 454 458 /** Allocates a psSpline1D structure 455 * 456 * Allocator for psSpline1D where the bounds are explicitly specified. 459 * 460 * Allocator for psSpline1D where the bounds are explicitly specified. 457 461 * 458 462 * @return psSpline1D* new 1-D spline struct … … 460 464 psSpline1D *psSpline1DAllocGeneric( 461 465 const psVector *bounds, ///< Bounds for spline polynomials 462 int order///< Order of spline polynomials466 unsigned int order ///< Order of spline polynomials 463 467 ); 464 468 465 469 /** Evaluates 1-D spline polynomials at a specific coordinate. 466 * 470 * 467 471 * @return float result of spline polynomials evaluated at given location 468 472 */ … … 473 477 474 478 /** Evaluates 1-D spline polynomials at a set of specific coordinates. 475 * 479 * 476 480 * @return psVector* results of spline polynomials evaluated at given locations 477 481 */ … … 483 487 /** Performs a binary disection on a given vector. 484 488 * Searches through an array of data for a specified value. 485 * 489 * 486 490 * @return psS32 corresponding index number of specified value 487 491 */ … … 499 503 psVector *domain, ///< Domain (x coords) for interpolation 500 504 psVector *range, ///< Range (y coords) for interpolation 501 psS32 order,///< Order of interpolation function505 unsigned int order, ///< Order of interpolation function 502 506 psScalar *x ///< Location at which to evaluate 503 507 );
Note:
See TracChangeset
for help on using the changeset viewer.
