#include "postprocess.h"
Defines | |
#define | FIT(i) gsl_vector_get(s->x, i) |
#define | ERR(i) sqrt(gsl_matrix_get(covar,i,i)) |
Functions | |
int | gsl_linsolve_svd (gsl_matrix *A, gsl_vector *b, gsl_vector *x) |
Linear Algebra: SVD. | |
int | gsl_linsolve_lu (gsl_matrix *A, gsl_vector *b, gsl_vector *x) |
Linear Algebra LU decomposition. | |
int | encaps_gsl_linsolveSVD (vector< vector< double > > &A, vector< double > &b, vector< double > &x) |
SVD solutions. | |
int | encaps_gsl_linsolveLU (double A[], double b[], double x[], int size) |
Encapsule gsl_linsolve_lu. | |
int | solve_gsl_lm (gsl_multifit_function_fdf *f, gsl_vector_view xv, double precision, int nbre_iter, gsl_multifit_fdfsolver *s, gsl_matrix *covar) |
void | print_results_lm (gsl_multifit_fdfsolver *s, size_t n, size_t p, int status, gsl_matrix *covar) |
Print Least Square result. |
#define ERR | ( | i | ) | sqrt(gsl_matrix_get(covar,i,i)) |
Referenced by print_results_lm().
#define FIT | ( | i | ) | gsl_vector_get(s->x, i) |
Referenced by print_results_lm().
int encaps_gsl_linsolveLU | ( | double | A[], |
double | b[], | ||
double | x[], | ||
int | size | ||
) |
int encaps_gsl_linsolveSVD | ( | vector< vector< double > > & | A, |
vector< double > & | b, | ||
vector< double > & | x | ||
) |
SVD solutions.
This function takes in data expressed as vectors and solves linear equation Ax-b= 0 using the SVD method
References gsl_linsolve_svd(), vect2double(), and vectormat2double().
int gsl_linsolve_lu | ( | gsl_matrix * | A, |
gsl_vector * | b, | ||
gsl_vector * | x | ||
) |
Linear Algebra LU decomposition.
Solve linear equation A*X-b = 0 uising LU decomposition
Referenced by encaps_gsl_linsolveLU().
int gsl_linsolve_svd | ( | gsl_matrix * | A, |
gsl_vector * | b, | ||
gsl_vector * | x | ||
) |
Linear Algebra: SVD.
Solve equation A*x -b = 0 using SVD
Referenced by encaps_gsl_linsolveSVD().
void print_results_lm | ( | gsl_multifit_fdfsolver * | s, |
size_t | n, | ||
size_t | p, | ||
int | status, | ||
gsl_matrix * | covar | ||
) |
Print Least Square result.
Display the result found using Least Squares
Referenced by calc_joint_ang(), and get_betas().
int solve_gsl_lm | ( | gsl_multifit_function_fdf * | f, |
gsl_vector_view | xv, | ||
double | precision, | ||
int | nbre_iter, | ||
gsl_multifit_fdfsolver * | s, | ||
gsl_matrix * | covar | ||
) |
solve lm : rempli s avec la solution et covar avec la covariance a partir de la fonction f, du vecteur initial xv avec la methode de levenberg-marquardt pour une precision et un nombre d'iteration max
calcul de l'erreur
Referenced by calc_joint_ang(), and get_betas().