ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
clipm_priv_optimize.h
Go to the documentation of this file.
1
5
6#ifndef CLIPM_PRIV_OPTIMIZE_H
7#define CLIPM_PRIV_OPTIMIZE_H
8
9/*-----------------------------------------------------------------------------
10 Includes
11 -----------------------------------------------------------------------------*/
12
13#include <cpl.h>
14
15/*-----------------------------------------------------------------------------
16 Declaration Block
17 -----------------------------------------------------------------------------*/
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*-----------------------------------------------------------------------------
24 Prototypes
25 -----------------------------------------------------------------------------*/
26
27cpl_error_code clipm_priv_optimize_gaussian(
28 const cpl_vector *xvalues,
29 const cpl_vector *xsigmas,
30 const cpl_vector *yvalues,
31 const cpl_vector *ysigmas,
32 cpl_fit_mode fit_pars,
33 int max_iterations,
34 double *x0,
35 double *x0_uncertainty,
36 double *sigma,
37 double *sigma_uncertainty,
38 double *fwhm,
39 double *fwhm_uncertainty,
40 double *area,
41 double *offset,
42 double *mse,
43 double *red_chisq,
44 cpl_matrix **covariance,
45 cpl_size *lower_ndx,
46 cpl_size *upper_ndx);
47
49 cpl_vector *fit_params,
50 const cpl_vector *start_delta,
51 const cpl_vector *precision,
52 double (*evalfunc)
53 (cpl_vector *params,
54 void *other),
55 void *other_func_par,
56 int max_iterations,
57 double *optimum,
58 int *done_iterations);
59
60/*----------------------------------------------------------------------------*/
61
62#ifdef __cplusplus
63} /* extern "C" */
64#endif
65
66#endif /* CLIPM_PRIV_OPTIMIZE_H */
cpl_error_code clipm_priv_optimize_downhill_simplex(cpl_vector *fit_params, const cpl_vector *start_delta, const cpl_vector *precision, double(*evalfunc)(cpl_vector *params, void *other), void *other_func_par, int max_iterations, double *optimum, int *done_iterations)
Optimize a set of parameters using the Downhill Simplex method by Nelder and Mead (also known as the ...
Definition clipm_priv_optimize.c:524
cpl_error_code clipm_priv_optimize_gaussian(const cpl_vector *xvalues, const cpl_vector *xsigmas, const cpl_vector *yvalues, const cpl_vector *ysigmas, cpl_fit_mode fit_pars, int max_iterations, double *x0, double *x0_uncertainty, double *sigma, double *sigma_uncertainty, double *fwhm, double *fwhm_uncertainty, double *area, double *offset, double *mse, double *red_chisq, cpl_matrix **covariance, cpl_size *lower_ndx, cpl_size *upper_ndx)
Apply a Gaussian fitting until it is successful.
Definition clipm_priv_optimize.c:141