Changeset 514 in Sophya for trunk/SophyaLib/NTools/linfit.h
- Timestamp:
- Oct 25, 1999, 6:43:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/linfit.h
r508 r514 1 1 // This may look like C code, but it is really -*- C++ -*- 2 2 // 3 // $Id: linfit.h,v 1. 3 1999-10-25 10:36:08ansari Exp $3 // $Id: linfit.h,v 1.4 1999-10-25 16:40:00 ansari Exp $ 4 4 // 5 5 … … 10 10 11 11 #include "machdefs.h" 12 class OMatrix; 13 class OVector; 12 #include "tvector.h" 14 13 15 double LinFit(const OVector& x, const OVector& y, int nf, 16 double (*f)(int, double), OVector& c); 14 namespace PlanckDPC { 15 16 double LinFit(const Vector& x, const Vector& y, int nf, 17 double (*f)(int, double), Vector& c); 17 18 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1; 18 19 19 20 20 double LinFit(const OMatrix& fx, const OVector& y, OVector& c);21 double LinFit(const Matrix& fx, const Vector& y, Vector& c); 21 22 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1, 22 23 // la matrice fx contient les valeurs des f: … … 24 25 25 26 26 double LinFit(const OVector& x, const OVector& y, const OVector& errY2, int nf,27 double (*f)(int, double), OVector& c, OVector& errC);27 double LinFit(const Vector& x, const Vector& y, const Vector& errY2, int nf, 28 double (*f)(int, double), Vector& c, Vector& errC); 28 29 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1, 29 30 // errY2 contient les carres des erreurs sur les Y. … … 31 32 32 33 33 double LinFit(const OMatrix& fx, const OVector& y, const OVector& errY2,34 OVector& c, OVector& errC);34 double LinFit(const Matrix& fx, const Vector& y, const Vector& errY2, 35 Vector& c, Vector& errC); 35 36 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1, 36 37 // la matrice fx contient les valeurs des f: … … 39 40 // au retour, errC contient les erreurs sur les coefs. 40 41 42 } // Fin du namespace 43 41 44 #endif // LINFIT_SEEN
Note:
See TracChangeset
for help on using the changeset viewer.