IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4528


Ignore:
Timestamp:
Jul 8, 2005, 4:11:01 PM (21 years ago)
Author:
drobbin
Message:

updated fxns to match psLib SDRS rev. 15

Location:
trunk/psLib
Files:
8 edited

Legend:

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

    r4447 r4528  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.115 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-07-01 22:01:17 $
     9 *  @version $Revision: 1.116 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-07-09 02:11:01 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    280280    Polynomial coefficients will be accessed in [w][x][y][z] fashion.
    281281 *****************************************************************************/
    282 static psF32 ordPolynomial1DEval(psF32 x, const psPolynomial1D* poly)
     282static psF64 ordPolynomial1DEval(psF64 x, const psPolynomial1D* poly)
    283283{
    284284    psS32 loop_x = 0;
     
    310310// XXX: How does the mask vector effect Crenshaw's formula?
    311311// XXX: We assume that x is scaled between -1.0 and 1.0;
    312 static psF32 chebPolynomial1DEval(psF32 x, const psPolynomial1D* poly)
     312static psF64 chebPolynomial1DEval(psF64 x, const psPolynomial1D* poly)
    313313{
    314314    PS_ASSERT_FLOAT_WITHIN_RANGE(x, -1.0, 1.0, 0.0);
     
    392392}
    393393
    394 static psF32 ordPolynomial2DEval(psF32 x,
    395                                  psF32 y,
     394static psF64 ordPolynomial2DEval(psF64 x,
     395                                 psF64 y,
    396396                                 const psPolynomial2D* poly)
    397397{
     
    418418}
    419419
    420 static psF32 chebPolynomial2DEval(psF32 x, psF32 y, const psPolynomial2D* poly)
     420static psF64 chebPolynomial2DEval(psF64 x, psF64 y, const psPolynomial2D* poly)
    421421{
    422422    PS_ASSERT_FLOAT_WITHIN_RANGE(x, -1.0, 1.0, 0.0);
     
    455455}
    456456
    457 static psF32 ordPolynomial3DEval(psF32 x, psF32 y, psF32 z, const psPolynomial3D* poly)
     457static psF64 ordPolynomial3DEval(psF64 x, psF64 y, psF64 z, const psPolynomial3D* poly)
    458458{
    459459    psS32 loop_x = 0;
     
    483483}
    484484
    485 static psF32 chebPolynomial3DEval(psF32 x, psF32 y, psF32 z, const psPolynomial3D* poly)
     485static psF64 chebPolynomial3DEval(psF64 x, psF64 y, psF64 z, const psPolynomial3D* poly)
    486486{
    487487    PS_ASSERT_FLOAT_WITHIN_RANGE(x, -1.0, 1.0, 0.0);
     
    527527}
    528528
    529 static psF32 ordPolynomial4DEval(psF32 x, psF32 y, psF32 z, psF32 t, const psPolynomial4D* poly)
     529static psF64 ordPolynomial4DEval(psF64 x, psF64 y, psF64 z, psF64 t, const psPolynomial4D* poly)
    530530{
    531531    psS32 loop_x = 0;
     
    561561}
    562562
    563 static psF32 chebPolynomial4DEval(psF32 x, psF32 y, psF32 z, psF32 t, const psPolynomial4D* poly)
     563static psF64 chebPolynomial4DEval(psF64 x, psF64 y, psF64 z, psF64 t, const psPolynomial4D* poly)
    564564{
    565565    PS_ASSERT_FLOAT_WITHIN_RANGE(x, -1.0, 1.0, 0.0);
     
    10691069    This routine must allocate memory for the polynomial structures.
    10701070 *****************************************************************************/
    1071 psPolynomial1D* psPolynomial1DAlloc(unsigned int n,
     1071psPolynomial1D* psPolynomial1DAlloc(int n,
    10721072                                    psPolynomialType type)
    10731073{
     
    10941094}
    10951095
    1096 psPolynomial2D* psPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    1097                                     psPolynomialType type)
     1096psPolynomial2D* psPolynomial2DAlloc( int nX, int nY,
     1097                                     psPolynomialType type)
    10981098{
    10991099    PS_ASSERT_INT_POSITIVE(nX, NULL);
     
    11301130}
    11311131
    1132 psPolynomial3D* psPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    1133                                     psPolynomialType type)
     1132psPolynomial3D* psPolynomial3DAlloc( int nX,  int nY, int nZ,
     1133                                     psPolynomialType type)
    11341134{
    11351135    PS_ASSERT_INT_POSITIVE(nX, NULL);
     
    11761176}
    11771177
    1178 psPolynomial4D* psPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    1179                                     psPolynomialType type)
     1178psPolynomial4D* psPolynomial4DAlloc( int nX,  int nY,  int nZ, int nT,
     1179                                     psPolynomialType type)
    11801180{
    11811181    PS_ASSERT_INT_POSITIVE(nX, NULL);
     
    14311431
    14321432
    1433 psDPolynomial1D* psDPolynomial1DAlloc(unsigned int n,
    1434                                       psPolynomialType type)
     1433psDPolynomial1D* psDPolynomial1DAlloc( int n,
     1434                                       psPolynomialType type)
    14351435{
    14361436    PS_ASSERT_INT_POSITIVE(n, NULL);
     
    14561456}
    14571457
    1458 psDPolynomial2D* psDPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    1459                                       psPolynomialType type)
     1458psDPolynomial2D* psDPolynomial2DAlloc( int nX, int nY,
     1459                                       psPolynomialType type)
    14601460{
    14611461    PS_ASSERT_INT_POSITIVE(nX, NULL);
     
    14921492}
    14931493
    1494 psDPolynomial3D* psDPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    1495                                       psPolynomialType type)
     1494psDPolynomial3D* psDPolynomial3DAlloc( int nX,  int nY, int nZ,
     1495                                       psPolynomialType type)
    14961496{
    14971497    PS_ASSERT_INT_POSITIVE(nX, NULL);
     
    15381538}
    15391539
    1540 psDPolynomial4D* psDPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    1541                                       psPolynomialType type)
     1540psDPolynomial4D* psDPolynomial4DAlloc( int nX,  int nY,  int nZ, int nT,
     1541                                       psPolynomialType type)
    15421542{
    15431543    PS_ASSERT_INT_POSITIVE(nX, NULL);
     
    18221822XXX: What should be the defualty type for knots be?  psF32 is assumed.
    18231823 *****************************************************************************/
    1824 psSpline1D *psSpline1DAlloc(unsigned int numSplines,
    1825                             unsigned int order,
    1826                             float min,
    1827                             float max)
     1824psSpline1D *psSpline1DAlloc( int numSplines,
     1825                            int order,
     1826                             float min,
     1827                             float max)
    18281828{
    18291829    PS_ASSERT_INT_NONNEGATIVE(numSplines, NULL);
     
    18671867 *****************************************************************************/
    18681868psSpline1D *psSpline1DAllocGeneric(const psVector *bounds,
    1869                                    unsigned int order)
     1869                                   int order)
    18701870{
    18711871    PS_ASSERT_VECTOR_NON_NULL(bounds, NULL);
     
    20452045psScalar *p_psVectorInterpolate(psVector *domain,
    20462046                                psVector *range,
    2047                                 unsigned int order,
     2047                                int order,
    20482048                                psScalar *x)
    20492049{
  • trunk/psLib/src/dataManip/psFunctions.h

    r4447 r4528  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-07-01 22:01:17 $
     14 *  @version $Revision: 1.53 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-07-09 02:11:01 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7575    psPolynomialType type;             ///< Polynomial type
    7676    psElemType ctype;                  ///< Polynomial precision
    77     unsigned int n;                    ///< Number of terms
     77    int n;                             ///< Number of terms
    7878    psF32 *coeff;                      ///< Coefficients
    7979    psF32 *coeffErr;                   ///< Error in coefficients
     
    8787    psPolynomialType type;             ///< Polynomial type
    8888    psElemType ctype;                  ///< Polynomial precision
    89     unsigned int nX;                   ///< Number of terms in x
    90     unsigned int nY;                   ///< Number of terms in y
     89    int nX;                            ///< Number of terms in x
     90    int nY;                            ///< Number of terms in y
    9191    psF32 **coeff;                     ///< Coefficients
    9292    psF32 **coeffErr;                  ///< Error in coefficients
     
    100100    psPolynomialType type;             ///< Polynomial type
    101101    psElemType ctype;                  ///< Polynomial precision
    102     unsigned int nX;                   ///< Number of terms in x
    103     unsigned int nY;                   ///< Number of terms in y
    104     unsigned int nZ;                   ///< Number of terms in z
     102    int nX;                           ///< Number of terms in x
     103    int nY;                            ///< Number of terms in y
     104    int nZ;                           ///< Number of terms in z
    105105    psF32 ***coeff;                    ///< Coefficients
    106106    psF32 ***coeffErr;                 ///< Error in coefficients
     
    114114    psPolynomialType type;             ///< Polynomial type
    115115    psElemType ctype;                  ///< Polynomial precision
    116     unsigned int nX;                   ///< Number of terms in x
    117     unsigned int nY;                   ///< Number of terms in y
    118     unsigned int nZ;                   ///< Number of terms in z
    119     unsigned int nT;                   ///< Number of terms in t
     116    int nX;                            ///< Number of terms in x
     117    int nY;                            ///< Number of terms in y
     118    int nZ;                            ///< Number of terms in z
     119    int nT;                            ///< Number of terms in t
    120120    psF32 ****coeff;                   ///< Coefficients
    121121    psF32 ****coeffErr;                ///< Error in coefficients
     
    130130 */
    131131psPolynomial1D* psPolynomial1DAlloc(
    132     unsigned int n,                   ///< Number of terms
     132    int n,                             ///< Number of terms
    133133    psPolynomialType type              ///< Polynomial Type
    134134);
     
    139139 */
    140140psPolynomial2D* psPolynomial2DAlloc(
    141     unsigned int nX,                   ///< Number of terms in x
    142     unsigned int nY,                   ///< Number of terms in y
     141    int nX,                   ///< Number of terms in x
     142    int nY,                   ///< Number of terms in y
    143143    psPolynomialType type              ///< Polynomial Type
    144144);
     
    149149 */
    150150psPolynomial3D* psPolynomial3DAlloc(
    151     unsigned int nX,                   ///< Number of terms in x
    152     unsigned int nY,                   ///< Number of terms in y
    153     unsigned int nZ,                   ///< Number of terms in z
     151    int nX,                            ///< Number of terms in x
     152    int nY,                            ///< Number of terms in y
     153    int nZ,                            ///< Number of terms in z
    154154    psPolynomialType type              ///< Polynomial Type
    155155);
     
    160160 */
    161161psPolynomial4D* psPolynomial4DAlloc(
    162     unsigned int nX,                   ///< Number of terms in x
    163     unsigned int nY,                   ///< Number of terms in y
    164     unsigned int nZ,                   ///< Number of terms in z
    165     unsigned int nT,                   ///< Number of terms in t
     162    int nX,                            ///< Number of terms in x
     163    int nY,                            ///< Number of terms in y
     164    int nZ,                            ///< Number of terms in z
     165    int nT,                            ///< Number of terms in t
    166166    psPolynomialType type              ///< Polynomial Type
    167167);
     
    259259{
    260260    psPolynomialType type;             ///< Polynomial type
    261     unsigned int n;                           ///< Number of terms
     261    int n;                             ///< Number of terms
    262262    psF64 *coeff;                      ///< Coefficients
    263263    psF64 *coeffErr;                   ///< Error in coefficients
     
    270270{
    271271    psPolynomialType type;             ///< Polynomial type
    272     unsigned int nX;                          ///< Number of terms in x
    273     unsigned int nY;                          ///< Number of terms in y
     272    int nX;                            ///< Number of terms in x
     273    int nY;                            ///< Number of terms in y
    274274    psF64 **coeff;                     ///< Coefficients
    275275    psF64 **coeffErr;                  ///< Error in coefficients
     
    282282{
    283283    psPolynomialType type;             ///< Polynomial type
    284     unsigned int nX;                          ///< Number of terms in x
    285     unsigned int nY;                          ///< Number of terms in y
    286     unsigned int nZ;                          ///< Number of terms in z
     284    int nX;                            ///< Number of terms in x
     285    int nY;                            ///< Number of terms in y
     286    int nZ;                            ///< Number of terms in z
    287287    psF64 ***coeff;                    ///< Coefficients
    288288    psF64 ***coeffErr;                 ///< Error in coefficients
     
    295295{
    296296    psPolynomialType type;             ///< Polynomial type
    297     unsigned int nX;                          ///< Number of terms in w
    298     unsigned int nY;                          ///< Number of terms in x
    299     unsigned int nZ;                          ///< Number of terms in y
    300     unsigned int nT;                          ///< Number of terms in z
     297    int nX;                            ///< Number of terms in w
     298    int nY;                            ///< Number of terms in x
     299    int nZ;                            ///< Number of terms in y
     300    int nT;                            ///< Number of terms in z
    301301    psF64 ****coeff;                   ///< Coefficients
    302302    psF64 ****coeffErr;                ///< Error in coefficients
     
    310310 */
    311311psDPolynomial1D* psDPolynomial1DAlloc(
    312     unsigned int n,                           ///< Number of terms
     312    int n,                             ///< Number of terms
    313313    psPolynomialType type              ///< Polynomial Type
    314314);
     
    319319 */
    320320psDPolynomial2D* psDPolynomial2DAlloc(
    321     unsigned int nX,                          ///< Number of terms in x
    322     unsigned int nY,                          ///< Number of terms in y
     321    int nX,                            ///< Number of terms in x
     322    int nY,                            ///< Number of terms in y
    323323    psPolynomialType type              ///< Polynomial Type
    324324);
     
    329329 */
    330330psDPolynomial3D* psDPolynomial3DAlloc(
    331     unsigned int nX,                          ///< Number of terms in x
    332     unsigned int nY,                          ///< Number of terms in y
    333     unsigned int nZ,                          ///< Number of terms in z
     331    int nX,                            ///< Number of terms in x
     332    int nY,                            ///< Number of terms in y
     333    int nZ,                            ///< Number of terms in z
    334334    psPolynomialType type              ///< Polynomial Type
    335335);
     
    340340 */
    341341psDPolynomial4D* psDPolynomial4DAlloc(
    342     unsigned int nX,                          ///< Number of terms in w
    343     unsigned int nY,                          ///< Number of terms in x
    344     unsigned int nZ,                          ///< Number of terms in y
    345     unsigned int nT,                          ///< Number of terms in z
     342    int nX,                            ///< Number of terms in w
     343    int nY,                            ///< Number of terms in x
     344    int nZ,                            ///< Number of terms in y
     345    int nT,                            ///< Number of terms in z
    346346    psPolynomialType type              ///< Polynomial Type
    347347);
     
    450450 */
    451451psSpline1D *psSpline1DAlloc(
    452     unsigned int n,                    ///< Number of spline polynomials
    453     unsigned int order,                ///< Order of spline polynomials
     452    int n,                             ///< Number of spline polynomials
     453    int order,                         ///< Order of spline polynomials
    454454    float min,                         ///< Lower boundary value of spline polynomials
    455455    float max                          ///< Upper boundary value of spline polynomials
     
    464464psSpline1D *psSpline1DAllocGeneric(
    465465    const psVector *bounds,            ///< Bounds for spline polynomials
    466     unsigned int order                 ///< Order of spline polynomials
     466    int order                          ///< Order of spline polynomials
    467467);
    468468
     
    503503    psVector *domain,                  ///< Domain (x coords) for interpolation
    504504    psVector *range,                   ///< Range (y coords) for interpolation
    505     unsigned int order,                ///< Order of interpolation function
     505    int order,                         ///< Order of interpolation function
    506506    psScalar *x                        ///< Location at which to evaluate
    507507);
  • trunk/psLib/src/dataManip/psMinimize.c

    r4321 r4528  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.123 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-20 22:42:30 $
     11 *  @version $Revision: 1.124 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-07-09 02:11:01 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    13571357XXX: type F32 is done via vector conversion only.
    13581358 *****************************************************************************/
    1359 psPolynomial1D* psVectorFitPolynomial1D(psPolynomial1D* myPoly,
     1359psPolynomial1D* psVectorFitPolynomial1D(psPolynomial1D* poly,
    13601360                                        const psVector* x,
    13611361                                        const psVector* y,
    13621362                                        const psVector* yErr)
    13631363{
    1364     PS_ASSERT_POLY_NON_NULL(myPoly, NULL);
    1365     PS_ASSERT_INT_NONNEGATIVE(myPoly->n, NULL);
     1364    PS_ASSERT_POLY_NON_NULL(poly, NULL);
     1365    PS_ASSERT_INT_NONNEGATIVE(poly->n, NULL);
    13661366    PS_ASSERT_VECTOR_NON_NULL(y, NULL);
    13671367    PS_ASSERT_VECTOR_NON_EMPTY(y, NULL);
     
    13891389    if (x == NULL) {
    13901390        PS_VECTOR_GEN_X_INDEX_STATIC_F64(x64Static, y->n);
    1391         if (myPoly->type == PS_POLYNOMIAL_CHEB) {
     1391        if (poly->type == PS_POLYNOMIAL_CHEB) {
    13921392            p_psNormalizeVectorRangeF64(x64Static, -1.0, 1.0);
    13931393        }
     
    13961396        PS_ASSERT_VECTOR_TYPE_F32_OR_F64(x, NULL);
    13971397        PS_VECTOR_CONVERT_F32_TO_F64_STATIC(x, x64, x64Static);
    1398         if (myPoly->type == PS_POLYNOMIAL_CHEB) {
     1398        if (poly->type == PS_POLYNOMIAL_CHEB) {
    13991399            p_psNormalizeVectorRangeF64(x64, -1.0, 1.0);
    14001400        }
     
    14051405    // Call the appropriate vector fitting routine.
    14061406    psPolynomial1D *rc = NULL;
    1407     if (myPoly->type == PS_POLYNOMIAL_CHEB) {
    1408         rc = vectorFitPolynomial1DCheby(myPoly, x64, y64, yErr64);
    1409     } else if (myPoly->type == PS_POLYNOMIAL_ORD) {
    1410         rc = vectorFitPolynomial1DOrd(myPoly, x64, y64, yErr64);
     1407    if (poly->type == PS_POLYNOMIAL_CHEB) {
     1408        rc = vectorFitPolynomial1DCheby(poly, x64, y64, yErr64);
     1409    } else if (poly->type == PS_POLYNOMIAL_ORD) {
     1410        rc = vectorFitPolynomial1DOrd(poly, x64, y64, yErr64);
    14111411    } else {
    14121412        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     
    14191419    }
    14201420
    1421     return(myPoly);
     1421    return(poly);
    14221422}
    14231423
     
    14321432
    14331433    psMinimization *min = psAlloc(sizeof(psMinimization));
    1434     min->maxIter = maxIter;
    1435     min->tol = tol;
     1434    *(int*)&min->maxIter = maxIter;
     1435    *(float*)&min->tol = tol;
    14361436    min->value = 0.0;
    14371437    min->iter = 0;
     
    19931993        for (i=0;i<numDims;i++) {
    19941994            if (myParamMask->data.U8[i] == 0) {
    1995                 dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS;
    1996                 dummyMin.tol = PS_MINIMIZE_POWELL_LINEMIN_ERROR_TOLERANCE;
     1995                *(int*)&dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS;
     1996                *(float*)&dummyMin.tol = PS_MINIMIZE_POWELL_LINEMIN_ERROR_TOLERANCE;
    19971997                mul = p_psLineMin(&dummyMin,
    19981998                                  Q,
  • trunk/psLib/src/dataManip/psMinimize.h

    r4330 r4528  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-06-21 03:01:37 $
     10 *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-07-09 02:11:01 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3838
    3939/** A data structure for minimization routines.
    40  * 
     40 *
    4141 *  Contains numerical analysis parameters/values
    4242 */
    4343typedef struct
    4444{
    45     psS32 maxIter;                     ///< Convergence limit
    46     psF32 tol;                         ///< Error Tolerance
    47     psF32 value;                       ///< Value of function at minimum
    48     psS32 iter;                        ///< Number of iterations to date
    49     psF32 lastDelta;                   ///< The last difference for the fit
     45    const int maxIter;                 ///< Convergence limit
     46    const float tol;                   ///< Error Tolerance
     47    float value;                       ///< Value of function at minimum
     48    int iter;                          ///< Number of iterations to date
     49    float lastDelta;                   ///< The last difference for the fit
    5050}
    5151psMinimization;
    5252
    5353/** Allocates a psMinimization structure.
    54  * 
     54 *
    5555 *  @return psMinimization* :   a new psMinimization struct
    5656*/
     
    7474 */
    7575psPolynomial1D* psVectorFitPolynomial1D(
    76     psPolynomial1D* myPoly,            ///< Polynomial to fit
     76    psPolynomial1D* poly,            ///< Polynomial to fit
    7777    const psVector* x,                 ///< Ordinates (or NULL to just use the indices)
    7878    const psVector* y,                 ///< Coordinates
     
    8181
    8282/** Derive a one-dimensional spline fit.
    83  *   
    84  *  Given a psSpline1D data structure and a set of x,y vectors, this routine 
     83 *
     84 *  Given a psSpline1D data structure and a set of x,y vectors, this routine
    8585 *  generates the linear splines which satisfy those data points.
    86  * 
     86 *
    8787 *  @return psSpline1D*:  the calculated one-dimensional splines
    8888 */
     
    9696/** Specifies the format of a user-defined function that the general Levenberg-
    9797 *  Marquardt minimizer routine will accept.
    98  * 
    99  *  @return psF64:   the single float value of the function given the parameters,
     98 *
     99 *  @return float:   the single float value of the function given the parameters,
    100100 *       positions, and derivatives.
    101101 */
    102102typedef
    103 psF64 (*psMinimizeLMChi2Func)(
     103float (*psMinimizeLMChi2Func)(
    104104    psVector *deriv,                   ///< derivatives of the function
    105     psVector *params,                  ///< the parameters used to evaluate the function
    106     psVector *x                        ///< positions for evaluation
     105    const psVector *params,            ///< the parameters used to evaluate the function
     106    const psVector *x                  ///< positions for evaluation
    107107);
    108108
    109109/** Minimizes a specified function based on the Levenberg-Marquardt method.
    110  * 
     110 *
    111111 *  @return bool:   True if successful.
    112112 */
     
    123123
    124124/** Use specified alpha, beta, params to generate a new guess for Alpha, Beta, Params
    125  * 
     125 *
    126126 *  @return psBool:   True if successful.
    127127 */
     
    138138
    139139/** Function used to set parameters for generating "best guess" in minimizing Chi-Squared value.
    140  * 
     140 *
    141141 *  @return psF64:    Chi-squared value for new guess
    142142 */
     
    153153/** Specifies the format of a user-defined function that the general Powell
    154154 *  minimizer routine will accept.
    155  * 
    156  *  @return psF32:   the single float value of the function given the parameters
     155 *
     156 *  @return float:   the single float value of the function given the parameters
    157157 *      and coordinate vectors.
    158158*/
    159159typedef
    160 psF32 (*psMinimizePowellFunc)(
     160float (*psMinimizePowellFunc)(
    161161    const psVector *params,            ///< Parameters used to evaluate the function
    162162    const psArray *coords              ///< Coordinates at which to evaluate
     
    164164
    165165/** Minimizes a specified function based on the Powell method.
    166  * 
     166 *
    167167 *  @return bool:   True if successful.
    168168 */
     
    177177/** Calculates the one-dimensional Gaussian in a format acceptable to the Levenberg-
    178178 *  Marquardt minimizer routine.
    179  * 
     179 *
    180180 *  @return psVector*:    Calculated values
    181181 */
     
    188188/** Calculates the one-dimensional Gaussian in a format acceptable to the Powell
    189189 *  chi-squared minimizer routine.
    190  * 
     190 *
    191191 *  @return psVector*:   Calculated values
    192192 */
     
    198198/** Specifies the format of a user-defined function that the general Powell chi-
    199199 *  squared minimizer routine will accept.
    200  * 
     200 *
    201201 *  @return psVector*:    Calculated values given the parameters and coordinates.
    202202*/
     
    208208
    209209/** Minimizes a specified function based on the Powell chi-squared method.
    210  * 
     210 *
    211211 *  @return bool:   True is successful.
    212212 */
     
    222222
    223223/** Gauss-Jordan numerical solver.
    224  * 
     224 *
    225225 *  @return bool:   True if successful.
    226226 */
  • trunk/psLib/test/dataManip/verified/tst_psMinimize04.stderr

    r3127 r4528  
    22    Following should generate an error for null input polynomial.
    33<DATE><TIME>|<HOST>|E|psVectorFitPolynomial1D (FILE:LINENO)
    4     Unallowable operation: polynomial myPoly or its coeffs is NULL.
     4    Unallowable operation: polynomial poly or its coeffs is NULL.
  • trunk/psLib/test/dataManip/verified/tst_psMinimize04_F32.stderr

    r3127 r4528  
    22    Following should generate an error for null input polynomial.
    33<DATE><TIME>|<HOST>|E|psVectorFitPolynomial1D (FILE:LINENO)
    4     Unallowable operation: polynomial myPoly or its coeffs is NULL.
     4    Unallowable operation: polynomial poly or its coeffs is NULL.
  • trunk/psLib/test/dataManip/verified/tst_psMinimize04b.stderr

    r3127 r4528  
    22    Following should generate an error for null arguments.
    33<DATE><TIME>|<HOST>|E|psVectorFitPolynomial1D (FILE:LINENO)
    4     Unallowable operation: polynomial myPoly or its coeffs is NULL.
     4    Unallowable operation: polynomial poly or its coeffs is NULL.
  • trunk/psLib/test/dataManip/verified/tst_psMinimize04b_F32.stderr

    r3127 r4528  
    22    Following should generate an error for null arguments.
    33<DATE><TIME>|<HOST>|E|psVectorFitPolynomial1D (FILE:LINENO)
    4     Unallowable operation: polynomial myPoly or its coeffs is NULL.
     4    Unallowable operation: polynomial poly or its coeffs is NULL.
Note: See TracChangeset for help on using the changeset viewer.