IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psSpline.h

    r1968 r2204  
    1212*  @author George Gusciora, MHPCC
    1313*
    14 *  @version $Revision: 1.30 $ $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 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4545    float mean,                        ///< Mean for the Gaussian
    4646    float stddev,                      ///< Standard deviation for the Gaussian
    47     bool normal                        ///< Indicates whether result should be normalized
     47    psBool normal                        ///< Indicates whether result should be normalized
    4848);
    4949
     
    5757    float mean,                        ///< The mean of the Gaussian
    5858    float sigma,                       ///< The sigma of the Gaussian
    59     int Npts                           ///< The size of the vector
     59    psS32 Npts                           ///< The size of the vector
    6060);
    6161
     
    6969{
    7070    psPolynomialType type;             ///< Polynomial type
    71     int n;                             ///< Number of terms
     71    psS32 n;                             ///< Number of terms
    7272    float *coeff;                      ///< Coefficients
    7373    float *coeffErr;                   ///< Error in coefficients
     
    8080{
    8181    psPolynomialType type;             ///< Polynomial type
    82     int nX;                            ///< Number of terms in x
    83     int nY;                            ///< Number of terms in y
     82    psS32 nX;                            ///< Number of terms in x
     83    psS32 nY;                            ///< Number of terms in y
    8484    float **coeff;                     ///< Coefficients
    8585    float **coeffErr;                  ///< Error in coefficients
     
    9292{
    9393    psPolynomialType type;             ///< Polynomial type
    94     int nX;                            ///< Number of terms in x
    95     int nY;                            ///< Number of terms in y
    96     int nZ;                            ///< Number of terms in z
     94    psS32 nX;                            ///< Number of terms in x
     95    psS32 nY;                            ///< Number of terms in y
     96    psS32 nZ;                            ///< Number of terms in z
    9797    float ***coeff;                    ///< Coefficients
    9898    float ***coeffErr;                 ///< Error in coefficients
     
    105105{
    106106    psPolynomialType type;             ///< Polynomial type
    107     int nW;                            ///< Number of terms in w
    108     int nX;                            ///< Number of terms in x
    109     int nY;                            ///< Number of terms in y
    110     int nZ;                            ///< Number of terms in z
     107    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
    111111    float ****coeff;                   ///< Coefficients
    112112    float ****coeffErr;                ///< Error in coefficients
     
    121121 */
    122122psPolynomial1D* psPolynomial1DAlloc(
    123     int n,                              ///< Number of terms
     123    psS32 n,                              ///< Number of terms
    124124    psPolynomialType type               ///< Polynomial Type
    125125);
     
    130130 */
    131131psPolynomial2D* psPolynomial2DAlloc(
    132     int nX,                            ///< Number of terms in x
    133     int nY,                            ///< Number of terms in y
     132    psS32 nX,                            ///< Number of terms in x
     133    psS32 nY,                            ///< Number of terms in y
    134134    psPolynomialType type              ///< Polynomial Type
    135135);
     
    140140 */
    141141psPolynomial3D* psPolynomial3DAlloc(
    142     int nX,                            ///< Number of terms in x
    143     int nY,                            ///< Number of terms in y
    144     int nZ,                            ///< Number of terms in z
     142    psS32 nX,                            ///< Number of terms in x
     143    psS32 nY,                            ///< Number of terms in y
     144    psS32 nZ,                            ///< Number of terms in z
    145145    psPolynomialType type              ///< Polynomial Type
    146146);
     
    151151 */
    152152psPolynomial4D* psPolynomial4DAlloc(
    153     int nW,                            ///< Number of terms in w
    154     int nX,                            ///< Number of terms in x
    155     int nY,                            ///< Number of terms in y
    156     int nZ,                            ///< Number of terms in z
     153    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
    157157    psPolynomialType type              ///< Polynomial Type
    158158);
     
    230230{
    231231    psPolynomialType type;             ///< Polynomial type
    232     int n;                             ///< Number of terms
     232    psS32 n;                             ///< Number of terms
    233233    double *coeff;                     ///< Coefficients
    234234    double *coeffErr;                  ///< Error in coefficients
     
    241241{
    242242    psPolynomialType type;             ///< Polynomial type
    243     int nX;                            ///< Number of terms in x
    244     int nY;                            ///< Number of terms in y
     243    psS32 nX;                            ///< Number of terms in x
     244    psS32 nY;                            ///< Number of terms in y
    245245    double **coeff;                    ///< Coefficients
    246246    double **coeffErr;                 ///< Error in coefficients
     
    253253{
    254254    psPolynomialType type;             ///< Polynomial type
    255     int nX;                            ///< Number of terms in x
    256     int nY;                            ///< Number of terms in y
    257     int nZ;                            ///< Number of terms in z
     255    psS32 nX;                            ///< Number of terms in x
     256    psS32 nY;                            ///< Number of terms in y
     257    psS32 nZ;                            ///< Number of terms in z
    258258    double ***coeff;                   ///< Coefficients
    259259    double ***coeffErr;                ///< Error in coefficients
     
    266266{
    267267    psPolynomialType type;             ///< Polynomial type
    268     int nW;                            ///< Number of terms in w
    269     int nX;                            ///< Number of terms in x
    270     int nY;                            ///< Number of terms in y
    271     int nZ;                            ///< Number of terms in z
     268    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
    272272    double ****coeff;                  ///< Coefficients
    273273    double ****coeffErr;               ///< Error in coefficients
     
    281281 */
    282282psDPolynomial1D* psDPolynomial1DAlloc(
    283     int n,                             ///< Number of terms
     283    psS32 n,                             ///< Number of terms
    284284    psPolynomialType type              ///< Polynomial Type
    285285);
     
    290290 */
    291291psDPolynomial2D* psDPolynomial2DAlloc(
    292     int nX,                            ///< Number of terms in x
    293     int nY,                            ///< Number of terms in y
     292    psS32 nX,                            ///< Number of terms in x
     293    psS32 nY,                            ///< Number of terms in y
    294294    psPolynomialType type              ///< Polynomial Type
    295295);
     
    300300 */
    301301psDPolynomial3D* psDPolynomial3DAlloc(
    302     int nX,                            ///< Number of terms in x
    303     int nY,                            ///< Number of terms in y
    304     int nZ,                            ///< Number of terms in z
     302    psS32 nX,                            ///< Number of terms in x
     303    psS32 nY,                            ///< Number of terms in y
     304    psS32 nZ,                            ///< Number of terms in z
    305305    psPolynomialType type              ///< Polynomial Type
    306306);
     
    311311 */
    312312psDPolynomial4D* psDPolynomial4DAlloc(
    313     int nW,                            ///< Number of terms in w
    314     int nX,                            ///< Number of terms in x
    315     int nY,                            ///< Number of terms in y
    316     int nZ,                            ///< Number of terms in z
     313    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
    317317    psPolynomialType type              ///< Polynomial Type
    318318);
     
    386386typedef struct
    387387{
    388     int n;                        ///< The number of spline polynomials
     388    psS32 n;                        ///< The number of spline polynomials
    389389    psPolynomial1D **spline;      ///< An array of n pointers to the spline polynomials
    390390    float *p_psDeriv2;            ///< For cubic splines, the second derivative at each domain point.  Size is n+1.
     
    393393psSpline1D;
    394394
    395 psSpline1D *psSpline1DAlloc(int n,
    396                             int order,
     395psSpline1D *psSpline1DAlloc(psS32 n,
     396                            psS32 order,
    397397                            float min,
    398398                            float max);
    399399
    400 int p_psSpline1DFree(psSpline1D *tmpSpline);
     400psS32 p_psSpline1DFree(psSpline1D *tmpSpline);
    401401
    402402psSpline1D *psSpline1DAllocGeneric(const psVector *bounds,
    403                                    int order);
     403                                   psS32 order);
    404404
    405405float psSpline1DEval(const psSpline1D *spline,
     
    409409                               const psSpline1D *spline);
    410410
    411 int p_psVectorBinDisectF32(float *bins,
    412                            int numBins,
    413                            float x);
    414 
    415 int p_psVectorBinDisectS32(int *bins,
    416                            int numBins,
    417                            int x);
    418 
    419 int p_psVectorBinDisect(psVector *bins,
    420                         psScalar *x);
     411psS32 p_psVectorBinDisectF32(float *bins,
     412                             psS32 numBins,
     413                             float x);
     414
     415psS32 p_psVectorBinDisectS32(psS32 *bins,
     416                             psS32 numBins,
     417                             psS32 x);
     418
     419psS32 p_psVectorBinDisect(psVector *bins,
     420                          psScalar *x);
    421421
    422422psScalar *p_psVectorInterpolate(psVector *domain,
    423423                                psVector *range,
    424                                 int order,
     424                                psS32 order,
    425425                                psScalar *x);
    426426
Note: See TracChangeset for help on using the changeset viewer.