Changeset 671 for trunk/archive/pslib/include/psMinimize.h
- Timestamp:
- May 13, 2004, 1:16:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psMinimize.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMinimize.h
r615 r671 13 13 14 14 /** Find the minimum of a particular non-linear function */ 15 ps FloatArray*16 psMinimize(ps FloatArray *restrict initialGuess,///< Initial guess and answer17 float (*myFunction)(const ps FloatArray*restrict), ///< Function to minimize18 float (*myFuncDeriv)(const ps FloatArray*restrict), ///< Derivatives of function, or NULL19 const ps IntArray *restrict paramMask //!< 1 = fit for parameter, 0 = hold parameter constant20 );15 psVector * 16 psMinimize(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 ; 21 21 22 22 23 23 /** Minimize chi^2 for input data */ 24 ps FloatArray*25 psMinimizeChi2(ps FloatArray *restrict initialGuess,///< Initial guess and answer26 float (*evalModel)(const ps FloatArray*restrict,27 const ps FloatArray*restrict), ///< Model to fit; (domain and params)28 const ps FloatArray*restrict domain, ///< The domain values for the corresponding measurements29 const ps FloatArray*restrict data, ///< Data to fit30 const ps FloatArray*restrict errors, ///< Errors in the data31 const ps IntArray *restrict paramMask///< 1 = fit for parameter, 0 = hold parameter constant32 );24 psVector * 25 psMinimizeChi2(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 ; 33 33 34 34 /** Derive a polynomial fit by chi^2 minimisation --- can be done analytically */ 35 35 psPolynomial1D * 36 ps GetArrayPolynomial(psPolynomial1D myPoly, ///< Polynomial to fit37 const ps FloatArray*restrict x, ///< Ordinates (or NULL to just use the indices)38 const ps FloatArray*restrict y, ///< Coordinates39 const ps FloatArray *restrict yErr///< Errors in coordinates, or NULL40 );36 psVectorFitPolynomial(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 ; 41 41 42 42 /* \} */ // End of MathGroup Functions
Note:
See TracChangeset
for help on using the changeset viewer.
