IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2005, 4:47:16 PM (21 years ago)
Author:
gusciora
Message:

The nX terms for the polynomials now refer to the order, not the number
of terms.

File:
1 edited

Legend:

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

    r5066 r5090  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-09-19 19:53:13 $
     13 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-09-22 02:47:16 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6464 */
    6565typedef enum {
    66     PS_POLYNOMIAL_ORD,                 ///< Ordinary Polynomial
    67     PS_POLYNOMIAL_CHEB                 ///< Chebyshev Polynomial
     66    PS_POLYNOMIAL_ORD,                  ///< Ordinary Polynomial
     67    PS_POLYNOMIAL_CHEB                  ///< Chebyshev Polynomial
    6868}
    6969psPolynomialType;
    7070
     71// XXX: These are incorrect names for the order of the polynomial.  We
     72// keep them here temporarily so we can later sed replace them with the
     73// correct names.
    7174/** One-dimensional polynomial */
    7275typedef struct
    7376{
    74     psPolynomialType type;             ///< Polynomial type
    75     unsigned int n;                    ///< Number of terms
    76     psF64 *coeff;                      ///< Coefficients
    77     psF64 *coeffErr;                   ///< Error in coefficients
    78     psMaskType *mask;                  ///< Coefficient mask
     77    psPolynomialType type;              ///< Polynomial type
     78    unsigned int COOL_1D_n;             ///< Polynomial order
     79    psF64 *coeff;                       ///< Coefficients
     80    psF64 *coeffErr;                    ///< Error in coefficients
     81    psMaskType *mask;                   ///< Coefficient mask
    7982}
    8083psPolynomial1D;
    8184
     85// XXX: These are incorrect names for the order of the polynomial.  We
     86// keep them here temporarily so we can later sed replace them with the
     87// correct names.
    8288/** Two-dimensional polynomial */
    8389typedef struct
    8490{
    85     psPolynomialType type;             ///< Polynomial type
    86     unsigned int nX;                   ///< Number of terms in x
    87     unsigned int nY;                   ///< Number of terms in y
    88     psF64 **coeff;                     ///< Coefficients
    89     psF64 **coeffErr;                  ///< Error in coefficients
    90     psMaskType **mask;                 ///< Coefficients mask
     91    psPolynomialType type;              ///< Polynomial type
     92    unsigned int COOL_2D_nX;            ///< Polynomial order in x
     93    unsigned int COOL_2D_nY;            ///< Polynomial order in y
     94    psF64 **coeff;                      ///< Coefficients
     95    psF64 **coeffErr;                   ///< Error in coefficients
     96    psMaskType **mask;                  ///< Coefficients mask
    9197}
    9298psPolynomial2D;
    9399
     100// XXX: These are incorrect names for the order of the polynomial.  We
     101// keep them here temporarily so we can later sed replace them with the
     102// correct names.
    94103/** Three-dimensional polynomial */
    95104typedef struct
    96105{
    97     psPolynomialType type;             ///< Polynomial type
    98     unsigned int nX;                   ///< Number of terms in x
    99     unsigned int nY;                   ///< Number of terms in y
    100     unsigned int nZ;                   ///< Number of terms in z
    101     psF64 ***coeff;                    ///< Coefficients
    102     psF64 ***coeffErr;                 ///< Error in coefficients
    103     psMaskType ***mask;                ///< Coefficients mask
     106    psPolynomialType type;              ///< Polynomial type
     107    unsigned int COOL_3D_nX;            ///< Polynomial order in x
     108    unsigned int COOL_3D_nY;            ///< Polynomial order in y
     109    unsigned int COOL_3D_nZ;            ///< Polynomial order in z
     110    psF64 ***coeff;                     ///< Coefficients
     111    psF64 ***coeffErr;                  ///< Error in coefficients
     112    psMaskType ***mask;                 ///< Coefficients mask
    104113}
    105114psPolynomial3D;
    106115
     116// XXX: These are incorrect names for the order of the polynomial.  We
     117// keep them here temporarily so we can later sed replace them with the
     118// correct names.
    107119/** Four-dimensional polynomial */
    108120typedef struct
    109121{
    110     psPolynomialType type;             ///< Polynomial type
    111     unsigned int nX;                   ///< Number of terms in x
    112     unsigned int nY;                   ///< Number of terms in y
    113     unsigned int nZ;                   ///< Number of terms in z
    114     unsigned int nT;                   ///< Number of terms in t
    115     psF64 ****coeff;                   ///< Coefficients
    116     psF64 ****coeffErr;                ///< Error in coefficients
    117     psMaskType ****mask;               ///< Coefficients mask
     122    psPolynomialType type;              ///< Polynomial type
     123    unsigned int COOL_4D_nX;            ///< Polynomial order in x
     124    unsigned int COOL_4D_nY;            ///< Polynomial order in y
     125    unsigned int COOL_4D_nZ;            ///< Polynomial order in z
     126    unsigned int COOL_4D_nT;            ///< Polynomial order in t
     127    psF64 ****coeff;                    ///< Coefficients
     128    psF64 ****coeffErr;                 ///< Error in coefficients
     129    psMaskType ****mask;                ///< Coefficients mask
    118130}
    119131psPolynomial4D;
Note: See TracChangeset for help on using the changeset viewer.