Changeset 508 in Sophya for trunk/SophyaLib/NTools/linfit.h
- Timestamp:
- Oct 25, 1999, 12:36:22 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/linfit.h
r494 r508 1 1 // This may look like C code, but it is really -*- C++ -*- 2 2 // 3 // $Id: linfit.h,v 1. 2 1999-10-21 18:45:46ansari Exp $3 // $Id: linfit.h,v 1.3 1999-10-25 10:36:08 ansari Exp $ 4 4 // 5 5 … … 10 10 11 11 #include "machdefs.h" 12 class Matrix;13 class Vector;12 class OMatrix; 13 class OVector; 14 14 15 double LinFit(const Vector& x, constVector& y, int nf,16 double (*f)(int, double), Vector& c);15 double LinFit(const OVector& x, const OVector& y, int nf, 16 double (*f)(int, double), OVector& c); 17 17 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1; 18 18 19 19 20 double LinFit(const Matrix& fx, const Vector& y,Vector& c);20 double LinFit(const OMatrix& fx, const OVector& y, OVector& c); 21 21 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1, 22 22 // la matrice fx contient les valeurs des f: … … 24 24 25 25 26 double LinFit(const Vector& x, const Vector& y, constVector& errY2, int nf,27 double (*f)(int, double), Vector& c,Vector& errC);26 double LinFit(const OVector& x, const OVector& y, const OVector& errY2, int nf, 27 double (*f)(int, double), OVector& c, OVector& errC); 28 28 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1, 29 29 // errY2 contient les carres des erreurs sur les Y. … … 31 31 32 32 33 double LinFit(const Matrix& fx, const Vector& y, constVector& errY2,34 Vector& c,Vector& errC);33 double LinFit(const OMatrix& fx, const OVector& y, const OVector& errY2, 34 OVector& c, OVector& errC); 35 35 // fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1, 36 36 // la matrice fx contient les valeurs des f:
Note:
See TracChangeset
for help on using the changeset viewer.