home *** CD-ROM | disk | FTP | other *** search
/ vis-ftp.cs.umass.edu / vis-ftp.cs.umass.edu.tar / vis-ftp.cs.umass.edu / pub / Software / ASCENDER / ascender.tar.Z / ascender.tar / Triangulate / include / marqu.s < prev    next >
Text File  |  1995-04-13  |  1KB  |  54 lines

  1. #ifndef incl_marqu_s
  2. #define incl_marqu_s
  3. #include "cvar.h"
  4.  
  5.  
  6. FUNCTION_DECL ( static void keybd_interrupt , (int errno));
  7.  
  8. FUNCTION_DECL ( static void calculate_new_position, (
  9.    double *dp,
  10.    double *mparam));
  11.  
  12. FUNCTION_DECL (static void compute_error_vector, (
  13.    double *mparams,    /* The parameters used for the computation */
  14.    double *dy,        /* The error vector */
  15.    int nrows,         /* Number of elements in mparams */
  16.    int ncols));
  17.  
  18. FUNCTION_DECL (static double calculate_error, (double *del));
  19.  
  20. FUNCTION_DECL (static int compute_covariance, (
  21.    double **dyda,         /* Jacobian */
  22.    double *dy,            /* Error vector */
  23.    double **weight,        /* Weight matrix or vector */
  24.    BOOLEAN diag,        /* Tells whether weight matrix is diagonal */
  25.    int nrows, int ncols,    /* Dimensions of the Jacobian matrix */
  26.    double **covar        /* Returned covariance matrix.  Must already be
  27.                  * allocated */
  28.    ));
  29.  
  30. FUNCTION_DECL (static void mrqcof, (
  31.    double **weight, 
  32.    double **alpha, 
  33.    double *beta, 
  34.    double **dyda, 
  35.    double *dy,
  36.    int nrows, 
  37.    int ncols,
  38.    int diag));
  39.  
  40. FUNCTION_DECL (static void compute_jacobian, (
  41.    double *mparam,
  42.    double **dyda,
  43.    int nrows, int ncols));
  44.  
  45. FUNCTION_DECL (static double marquardt_go, ());
  46.  
  47. FUNCTION_DECL (double marquardt, (Marquardt_info *mar));
  48.  
  49. FUNCTION_DECL (void marquardt_debug, (
  50.    double **alpha, 
  51.    double *beta));
  52.  
  53. #endif
  54.