Changeset 1093 for trunk/psLib/src/math/psMinimize.h
- Timestamp:
- Jun 24, 2004, 8:51:20 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimize.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimize.h
r974 r1093 12 12 */ 13 13 14 /** This routine must ninimize a particularnon-linear function */15 ps FloatArray*16 psMinimize(float (*myFunction)(const ps FloatArray*restrict), ///< Function to minimize17 ps FloatArray*restrict initialGuess, ///< Initial guess18 ps IntArray*restrict paramMask //!< 1 = fit for parameter, 0 = hold parameter constant14 /** This routine must minimize a non-linear function */ 15 psVector * 16 psMinimize(float (*myFunction)(const psVector *restrict), ///< Function to minimize 17 psVector *restrict initialGuess, ///< Initial guess 18 psVector *restrict paramMask //!< 1 = fit for parameter, 0 = hold parameter constant 19 19 ); 20 20 21 21 22 22 /** Minimize chi^2 for input data */ 23 psFloatArray * 24 psMinimizeChi2(float (*evalModel)(const psFloatArray *restrict, 25 const psFloatArray *restrict), ///< Model to fit; (domain and params) 26 const psFloatArray *restrict domain, ///< The domain values for the corresponding measurements 27 const psFloatArray *restrict data, ///< Data to fit 28 const psFloatArray *restrict errors, ///< Errors in the data 29 psFloatArray *restrict initialGuess, ///< Initial guess 30 const psIntArray *restrict paramMask ///< 1 = fit for parameter, 0 = hold parameter constant 23 psVector * 24 psMinimizeChi2(float (*evalModel)(const psVector *restrict, 25 const psVector *restrict), ///< Model to fit; (domain and params) 26 float (*DevalModel)(const psVector *restrict, 27 const psVector *restrict, 28 int), ///< Derivative of model to fit; (domain and params) 29 const psImage *restrict domain, ///< The domain values for the corresponding measurements 30 const psVector *restrict data, ///< Data to fit 31 const psVector *restrict errors, ///< Errors in the data 32 psVector *restrict initialGuess, ///< Initial guess 33 const psVector *restrict paramMask, ///< 1 = fit for parameter, 0 = hold parameter constant 34 float *chiSq 31 35 ); 32 36 33 /** Derive a polynomial fit by chi^2 minimisation --- can be done analytically*/37 /** Derive a polynomial fit by chi^2 minimisation (analytically) */ 34 38 psPolynomial1D * 35 39 psGetArrayPolynomial(psPolynomial1D myPoly, ///< Polynomial to fit 36 const ps FloatArray*restrict x, ///< Ordinates (or NULL to just use the indices)37 const ps FloatArray*restrict y, ///< Coordinates38 const ps FloatArray*restrict yErr ///< Errors in coordinates, or NULL40 const psVector *restrict x, ///< Ordinates (or NULL to just use the indices) 41 const psVector *restrict y, ///< Coordinates 42 const psVector *restrict yErr ///< Errors in coordinates, or NULL 39 43 ); 40 44
Note:
See TracChangeset
for help on using the changeset viewer.
