00001 #ifndef PARAMEST_H
00002 #define PARAMEST_H
00003
00004
00005
00012
00013
00014
00015
00016 #include "matrect.h"
00017 #include "mattri.h"
00018 #include "vect.h"
00019
00020
00021
00035 typedef int (*Nonlinregfunct_)(const double *, const double *, double *);
00036
00037
00038
00039 #ifdef __cplusplus
00040 namespace RazorBack { extern "C" {
00041 #endif
00042
00059 int lin_reg(const Matrect_ *X, const Vect_ *Y, const Vect_ *Wgt,
00060 double *Sres, Vect_ *Par, Vect_ *Sd, Mattri_ *Corr,
00061 double *Dstat);
00062
00077 double lms_fit(const double *x, const double *y, unsigned int N,
00078 double *b, double *a, double *Sigb, double *Siga, double *Sigab);
00079
00118 int nonlin_reg(Nonlinregfunct_ Funct,
00119 unsigned int ItMax, double StepLim,
00120 const Matrect_ *X, const Matrect_ *Y, const Matrect_ *Wgt,
00121 unsigned int *ItNo, double *Sres,
00122 Vect_ *Par, Vect_ *Sd, Mattri_ *Corr);
00123
00129 double tcrit_95(unsigned int Nf);
00130
00131 #ifdef __cplusplus
00132 } }
00133 #endif
00134
00135
00136
00137 #endif