IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2004, 1:37:39 PM (22 years ago)
Author:
desonia
Message:

found the server astyle upgrade was faulty, so the format was reset.

File:
1 edited

Legend:

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

    r1382 r1385  
    1212*  @author George Gusciora, MHPCC
    1313*
    14 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-08-04 22:11:09 $
     14*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-08-04 23:37:39 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3939            bool normal      ///< Indicates whether result should be normalized
    4040          );
    41          
    42          
     41
     42
    4343/** Produce a vector of random numbers from a Gaussian distribution with
    4444    the specified mean and sigma */
     
    4646                         float sigma,    ///< The sigma of the Gaussian
    4747                         int Npts );     ///< The size of the vector
    48                          
    49                          
    50                          
    51                          
    52                          
     48
     49
     50
     51
     52
    5353/** One-dimensional polynomial */
    5454typedef struct
    55     {
    56         int n;           ///< Number of terms
    57         float *coeff;    ///< Coefficients
    58         float *coeffErr; ///< Error in coefficients
    59         char *mask;      ///< Coefficient mask
    60     }
     55{
     56    int n;           ///< Number of terms
     57    float *coeff;    ///< Coefficients
     58    float *coeffErr; ///< Error in coefficients
     59    char *mask;      ///< Coefficient mask
     60}
    6161psPolynomial1D;
    6262
    6363/** Two-dimensional polynomial */
    6464typedef struct
    65     {
    66         int nX, nY;    ///< Number of terms in x and y
    67         float **coeff;   ///< Coefficients
    68         float **coeffErr;   ///< Error in coefficients
    69         char **mask;   ///< Coefficients mask
    70     }
     65{
     66    int nX, nY;    ///< Number of terms in x and y
     67    float **coeff;   ///< Coefficients
     68    float **coeffErr;   ///< Error in coefficients
     69    char **mask;   ///< Coefficients mask
     70}
    7171psPolynomial2D;
    7272
    7373/** Three-dimensional polynomial */
    7474typedef struct
    75     {
    76         int nX, nY, nZ;   ///< Number of terms in x, y and z
    77         float ***coeff;    ///< Coefficients
    78         float ***coeffErr;    ///< Error in coefficients
    79         char ***mask;    ///< Coefficients mask
    80     }
     75{
     76    int nX, nY, nZ;   ///< Number of terms in x, y and z
     77    float ***coeff;    ///< Coefficients
     78    float ***coeffErr;    ///< Error in coefficients
     79    char ***mask;    ///< Coefficients mask
     80}
    8181psPolynomial3D;
    8282
    8383/** Four-dimensional polynomial */
    8484typedef struct
    85     {
    86         int nW, nX, nY, nZ;   ///< Number of terms in w, x, y and z
    87         float ****coeff;    ///< Coefficients
    88         float ****coeffErr;   ///< Error in coefficients
    89         char ****mask;    ///< Coefficients mask
    90     }
     85{
     86    int nW, nX, nY, nZ;   ///< Number of terms in w, x, y and z
     87    float ****coeff;    ///< Coefficients
     88    float ****coeffErr;   ///< Error in coefficients
     89    char ****mask;    ///< Coefficients mask
     90}
    9191psPolynomial4D;
    9292
     
    106106psPolynomial4D *psPolynomial4DAlloc( int nW, int nX, int nY, int nZ ///< Number of terms in w, x, y and z
    107107                                   );
    108                                    
     108
    109109/** Evaluate 1D polynomial */
    110110float
     
    112112                    const psPolynomial1D *myPoly ///< Coefficients for the polynomial
    113113                  );
    114                  
     114
    115115/** Evaluate 2D polynomial */
    116116float
     
    119119                    const psPolynomial2D *myPoly ///< Coefficients for the polynomial
    120120                  );
    121                  
     121
    122122/** Evaluate 3D polynomial */
    123123float
     
    127127                    const psPolynomial3D *myPoly ///< Coefficients for the polynomial
    128128                  );
    129                  
     129
    130130/** Evaluate 4D polynomial */
    131131float
     
    136136                    const psPolynomial4D *myPoly ///< Coefficients for the polynomial
    137137                  );
    138                  
     138
    139139/*****************************************************************************/
    140140
     
    143143/** Double-precision one-dimensional polynomial */
    144144typedef struct
    145     {
    146         int n;    ///< Number of terms
    147         double *coeff;   ///< Coefficients
    148         double *coeffErr;   ///< Error in coefficients
    149         char *mask;    ///< Coefficient mask
    150     }
     145{
     146    int n;    ///< Number of terms
     147    double *coeff;   ///< Coefficients
     148    double *coeffErr;   ///< Error in coefficients
     149    char *mask;    ///< Coefficient mask
     150}
    151151psDPolynomial1D;
    152152
    153153/** Double-precision two-dimensional polynomial */
    154154typedef struct
    155     {
    156         int nX, nY;    ///< Number of terms in x and y
    157         double **coeff;   ///< Coefficients
    158         double **coeffErr;    ///< Error in coefficients
    159         char **mask;   ///< Coefficients mask
    160     }
     155{
     156    int nX, nY;    ///< Number of terms in x and y
     157    double **coeff;   ///< Coefficients
     158    double **coeffErr;    ///< Error in coefficients
     159    char **mask;   ///< Coefficients mask
     160}
    161161psDPolynomial2D;
    162162
    163163/** Double-precision three-dimensional polynomial */
    164164typedef struct
    165     {
    166         int nX, nY, nZ;   ///< Number of terms in x, y and z
    167         double ***coeff;   ///< Coefficients
    168         double ***coeffErr;   ///< Error in coefficients
    169         char ***mask;    ///< Coefficient mask
    170     }
     165{
     166    int nX, nY, nZ;   ///< Number of terms in x, y and z
     167    double ***coeff;   ///< Coefficients
     168    double ***coeffErr;   ///< Error in coefficients
     169    char ***mask;    ///< Coefficient mask
     170}
    171171psDPolynomial3D;
    172172
    173173/** Double-precision four-dimensional polynomial */
    174174typedef struct
    175     {
    176         int nW, nX, nY, nZ;   ///< Number of terms in w, x, y and z
    177         double ****coeff;    ///< Coefficients
    178         double ****coeffErr;   ///< Error in coefficients
    179         char ****mask;    ///< Coefficients mask
    180     }
     175{
     176    int nW, nX, nY, nZ;   ///< Number of terms in w, x, y and z
     177    double ****coeff;    ///< Coefficients
     178    double ****coeffErr;   ///< Error in coefficients
     179    char ****mask;    ///< Coefficients mask
     180}
    181181psDPolynomial4D;
    182182
     
    193193psDPolynomial4D *psDPolynomial4DAlloc( int nW, int nX, int nY, int nZ ///< Number of terms in w, x, y and z
    194194                                     );
    195                                      
     195
    196196/** Evaluate 1D polynomial (double precision) */
    197197double
     
    199199                     const psDPolynomial1D *myPoly ///< Coefficients for the polynomial
    200200                   );
    201                    
     201
    202202/** Evaluate 2D polynomial (double precision) */
    203203double
     
    206206                     const psDPolynomial2D *myPoly ///< Coefficients for the polynomial
    207207                   );
    208                    
     208
    209209/** Evaluate 3D polynomial (double precision) */
    210210double
     
    214214                     const psDPolynomial3D *myPoly ///< Coefficients for the polynomial
    215215                   );
    216                    
     216
    217217/** Evaluate 4D polynomial (double precision) */
    218218double
     
    223223                     const psDPolynomial4D *myPoly ///< Coefficients for the polynomial
    224224                   );
    225                    
     225
    226226/* \} */ // End of MathGroup Functions
    227227
Note: See TracChangeset for help on using the changeset viewer.