IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 1, 2005, 12:01:17 PM (21 years ago)
Author:
drobbin
Message:

revised psPoly struct/fxns, psMemProblem, according to psLib SDRS rev. 15

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psFunctions.h

    r4426 r4447  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-29 03:23:19 $
     14 *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-07-01 22:01:17 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7474{
    7575    psPolynomialType type;             ///< Polynomial type
    76     unsigned int n;                   ///< Number of terms
     76    psElemType ctype;                  ///< Polynomial precision
     77    unsigned int n;                    ///< Number of terms
    7778    psF32 *coeff;                      ///< Coefficients
    7879    psF32 *coeffErr;                   ///< Error in coefficients
    79     psU8 *mask;                        ///< Coefficient mask
     80    char *mask;                        ///< Coefficient mask
    8081}
    8182psPolynomial1D;
     
    8586{
    8687    psPolynomialType type;             ///< Polynomial type
     88    psElemType ctype;                  ///< Polynomial precision
    8789    unsigned int nX;                   ///< Number of terms in x
    8890    unsigned int nY;                   ///< Number of terms in y
    8991    psF32 **coeff;                     ///< Coefficients
    9092    psF32 **coeffErr;                  ///< Error in coefficients
    91     psU8 **mask;                       ///< Coefficients mask
     93    char **mask;                       ///< Coefficients mask
    9294}
    9395psPolynomial2D;
     
    9799{
    98100    psPolynomialType type;             ///< Polynomial type
     101    psElemType ctype;                  ///< Polynomial precision
    99102    unsigned int nX;                   ///< Number of terms in x
    100103    unsigned int nY;                   ///< Number of terms in y
     
    102105    psF32 ***coeff;                    ///< Coefficients
    103106    psF32 ***coeffErr;                 ///< Error in coefficients
    104     psU8 ***mask;                      ///< Coefficients mask
     107    char ***mask;                      ///< Coefficients mask
    105108}
    106109psPolynomial3D;
     
    110113{
    111114    psPolynomialType type;             ///< Polynomial type
     115    psElemType ctype;                  ///< Polynomial precision
    112116    unsigned int nX;                   ///< Number of terms in x
    113117    unsigned int nY;                   ///< Number of terms in y
     
    116120    psF32 ****coeff;                   ///< Coefficients
    117121    psF32 ****coeffErr;                ///< Error in coefficients
    118     psU8 ****mask;                     ///< Coefficients mask
     122    char ****mask;                     ///< Coefficients mask
    119123}
    120124psPolynomial4D;
     
    206210
    207211/** Evaluates a 1-D polynomial at specific sets of coordinates
    208  * 
     212 *
    209213 *  @return psVector*    results of polynomials at given locations
    210214 */
     
    215219
    216220/** Evaluates a 2-D polynomial at specific sets of coordinates
    217  * 
     221 *
    218222 *  @return psVector*    results of polynomial at given locations
    219223 */
     
    225229
    226230/** Evaluates a 3-D polynomial at specific sets of coordinates
    227  * 
     231 *
    228232 *  @return psVector*    results of polynomial at given locations
    229233 */
     
    236240
    237241/** Evaluates a 4-D polynomial at specific sets of coordinates
    238  * 
     242 *
    239243 *  @return psVector*    results of polynomial at given locations
    240244 */
     
    258262    psF64 *coeff;                      ///< Coefficients
    259263    psF64 *coeffErr;                   ///< Error in coefficients
    260     psU8 *mask;                        ///< Coefficient mask
     264    char *mask;                        ///< Coefficient mask
    261265}
    262266psDPolynomial1D;
     
    270274    psF64 **coeff;                     ///< Coefficients
    271275    psF64 **coeffErr;                  ///< Error in coefficients
    272     psU8 **mask;                       ///< Coefficients mask
     276    char **mask;                       ///< Coefficients mask
    273277}
    274278psDPolynomial2D;
     
    283287    psF64 ***coeff;                    ///< Coefficients
    284288    psF64 ***coeffErr;                 ///< Error in coefficients
    285     psU8 ***mask;                      ///< Coefficient mask
     289    char ***mask;                      ///< Coefficient mask
    286290}
    287291psDPolynomial3D;
     
    297301    psF64 ****coeff;                   ///< Coefficients
    298302    psF64 ****coeffErr;                ///< Error in coefficients
    299     psU8 ****mask;                     ///< Coefficients mask
     303    char ****mask;                     ///< Coefficients mask
    300304}
    301305psDPolynomial4D;
     
    386390
    387391/** Evaluates a double-precision 1-D polynomial at specific sets of coordinates.
    388  * 
     392 *
    389393 *  @return psVector*    results of polynomial at given locations
    390394 */
     
    395399
    396400/** Evaluates a double-precision 2-D polynomial at specific sets of coordinates.
    397  * 
     401 *
    398402 *  @return psVector*    results of polynomial at given locations
    399403 */
     
    405409
    406410/** Evaluates a double-precision 3-D polynomial at specific sets of coordinates.
    407  * 
     411 *
    408412 *  @return psVector*    results of polynomial at given locations
    409413 */
     
    416420
    417421/** Evaluates a double-precision 4-D polynomial at specific sets of coordinates.
    418  * 
     422 *
    419423 *  @return psVector*    results of polynomial at given locations
    420424 */
     
    430434typedef struct
    431435{
    432     psS32 n;                           ///< The number of spline polynomials
     436    unsigned int n;                    ///< The number of spline polynomials
    433437    psPolynomial1D **spline;           ///< An array of n pointers to the spline polynomials
    434438    psF32 *p_psDeriv2;                 ///< For cubic splines, the second derivative at each domain point.  Size is n+1.
     
    439443
    440444/** Allocates a psSpline1D structure
    441  * 
     445 *
    442446 *  Allocator for psSpline1D where the bounds are implicitly specified through specifying
    443447 *  min and max values along with the number of splines.
     
    446450 */
    447451psSpline1D *psSpline1DAlloc(
    448     int n,                             ///< Number of spline polynomials
    449     int order,                         ///< Order of spline polynomials
     452    unsigned int n,                    ///< Number of spline polynomials
     453    unsigned int order,                ///< Order of spline polynomials
    450454    float min,                         ///< Lower boundary value of spline polynomials
    451455    float max                          ///< Upper boundary value of spline polynomials
     
    453457
    454458/** 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.
    457461 *
    458462 *  @return psSpline1D*    new 1-D spline struct
     
    460464psSpline1D *psSpline1DAllocGeneric(
    461465    const psVector *bounds,            ///< Bounds for spline polynomials
    462     int order                          ///< Order of spline polynomials
     466    unsigned int order                 ///< Order of spline polynomials
    463467);
    464468
    465469/** Evaluates 1-D spline polynomials at a specific coordinate.
    466  * 
     470 *
    467471 *  @return float    result of spline polynomials evaluated at given location
    468472 */
     
    473477
    474478/** Evaluates 1-D spline polynomials at a set of specific coordinates.
    475  * 
     479 *
    476480 *  @return psVector*    results of spline polynomials evaluated at given locations
    477481 */
     
    483487/** Performs a binary disection on a given vector.
    484488 *  Searches through an array of data for a specified value.
    485  * 
     489 *
    486490 *  @return psS32    corresponding index number of specified value
    487491 */
     
    499503    psVector *domain,                  ///< Domain (x coords) for interpolation
    500504    psVector *range,                   ///< Range (y coords) for interpolation
    501     psS32 order,                       ///< Order of interpolation function
     505    unsigned int order,                ///< Order of interpolation function
    502506    psScalar *x                        ///< Location at which to evaluate
    503507);
Note: See TracChangeset for help on using the changeset viewer.