IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2005, 9:12:01 AM (21 years ago)
Author:
desonia
Message:

massive restructuring of codebase.

File:
1 edited

Legend:

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

    r4330 r4540  
    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-12 19:12: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 */
Note: See TracChangeset for help on using the changeset viewer.