IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2004, 1:16:19 PM (22 years ago)
Author:
eugene
Message:

psFloatArray, psDoubleArray, psIntArray, etc merged into
psVector. psVector is analogous to psImage. reference to the old
forms have been converted to psVector. the file psStdArrays.h has
been removed and replaced with psVector.h (containing the vector
functions) and psTypes.h (containing the basic data types)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMinimize.h

    r615 r671  
    1313
    1414/** Find the minimum of a particular non-linear function */
    15 psFloatArray *
    16 psMinimize(psFloatArray *restrict initialGuess, ///< Initial guess and answer
    17            float (*myFunction)(const psFloatArray *restrict), ///< Function to minimize
    18            float (*myFuncDeriv)(const psFloatArray *restrict), ///< Derivatives of function, or NULL
    19            const psIntArray *restrict paramMask //!< 1 = fit for parameter, 0 = hold parameter constant
    20            );
     15psVector *
     16psMinimize(psVector *restrict initialGuess, ///< Initial guess and answer
     17           float (*myFunction)(const psVector *restrict), ///< Function to minimize
     18           float (*myFuncDeriv)(const psVector *restrict), ///< Derivatives of function, or NULL
     19           const psVector *restrict paramMask) ///< 1 = fit for parameter, 0 = hold parameter constant
     20;
    2121
    2222
    2323/** Minimize chi^2 for input data */
    24 psFloatArray *
    25 psMinimizeChi2(psFloatArray *restrict initialGuess, ///< Initial guess and answer
    26                float (*evalModel)(const psFloatArray *restrict,
    27                                   const psFloatArray *restrict), ///< Model to fit; (domain and params)
    28                const psFloatArray *restrict domain, ///< The domain values for the corresponding measurements
    29                const psFloatArray *restrict data, ///< Data to fit
    30                const psFloatArray *restrict errors, ///< Errors in the data
    31                const psIntArray *restrict paramMask ///< 1 = fit for parameter, 0 = hold parameter constant
    32     );
     24psVector *
     25psMinimizeChi2(psVector *restrict initialGuess, ///< Initial guess and answer
     26               float (*evalModel)(const psVector *restrict,
     27                                  const psVector *restrict), ///< Model to fit; (domain and params)
     28               const psVector *restrict domain, ///< The domain values for the corresponding measurements
     29               const psVector *restrict data, ///< Data to fit
     30               const psVector *restrict errors, ///< Errors in the data
     31               const psVector *restrict paramMask) ///< 1 = fit for parameter, 0 = hold parameter constant
     32;
    3333
    3434/** Derive a polynomial fit by chi^2 minimisation --- can be done analytically */
    3535psPolynomial1D *
    36 psGetArrayPolynomial(psPolynomial1D myPoly, ///< Polynomial to fit
    37                      const psFloatArray *restrict x, ///< Ordinates (or NULL to just use the indices)
    38                      const psFloatArray *restrict y, ///< Coordinates
    39                      const psFloatArray *restrict yErr ///< Errors in coordinates, or NULL
    40     );
     36psVectorFitPolynomial(psPolynomial1D myPoly, ///< Polynomial to fit
     37                     const psVector *restrict x, ///< Ordinates (or NULL to just use the indices)
     38                     const psVector *restrict y, ///< Coordinates
     39                     const psVector *restrict yErr) ///< Errors in coordinates, or NULL
     40;
    4141
    4242/* \} */ // End of MathGroup Functions
Note: See TracChangeset for help on using the changeset viewer.