Changeset 344 for trunk/archive/pslib/include/psMinimize.h
- Timestamp:
- Mar 31, 2004, 5:01:04 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psMinimize.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMinimize.h
r336 r344 14 14 /** Minimize a particular non-linear function */ 15 15 psFloatArray * 16 psMinimize(float (*myFunction)(const psFloatArray *restrict), // !< Function to minimize17 psFloatArray *restrict initialGuess // !< Initial guess16 psMinimize(float (*myFunction)(const psFloatArray *restrict), ///< Function to minimize 17 psFloatArray *restrict initialGuess ///< Initial guess 18 18 ); 19 19 … … 22 22 psFloatArray * 23 23 psMinimizeChi2(float (*evalModel)(const psFloatArray *restrict, 24 const psFloatArray *restrict), // !< Model to fit; (domain and params)25 const psFloatArray *restrict domain, // !< The domain values for the corresponding measurements26 const psFloatArray *restrict data, // !< Data to fit27 const psFloatArray *restrict errors, // !< Errors in the data28 psFloatArray *restrict initialGuess, // !< Initial guess29 const psIntArray *restrict guessMask // !< 1 = fit for parameter, 0 = hold parameter constant24 const psFloatArray *restrict), ///< Model to fit; (domain and params) 25 const psFloatArray *restrict domain, ///< The domain values for the corresponding measurements 26 const psFloatArray *restrict data, ///< Data to fit 27 const psFloatArray *restrict errors, ///< Errors in the data 28 psFloatArray *restrict initialGuess, ///< Initial guess 29 const psIntArray *restrict guessMask ///< 1 = fit for parameter, 0 = hold parameter constant 30 30 ); 31 31 32 32 /** Derive a polynomial fit by chi^2 minimisation --- can be done analytically */ 33 33 psPolynomial1D * 34 psGetArrayPolynomial(psPolynomial1D myPoly, // !< Polynomial to fit35 const psFloatArray *restrict x, // !< Ordinates (or NULL to just use the indices)36 const psFloatArray *restrict y, // !< Coordinates37 const psFloatArray *restrict yErr // !< Errors in coordinates, or NULL34 psGetArrayPolynomial(psPolynomial1D myPoly, ///< Polynomial to fit 35 const psFloatArray *restrict x, ///< Ordinates (or NULL to just use the indices) 36 const psFloatArray *restrict y, ///< Coordinates 37 const psFloatArray *restrict yErr ///< Errors in coordinates, or NULL 38 38 ); 39 39
Note:
See TracChangeset
for help on using the changeset viewer.
