Changeset 514 in Sophya for trunk/SophyaLib/NTools/linfit.h


Ignore:
Timestamp:
Oct 25, 1999, 6:43:04 PM (26 years ago)
Author:
ansari
Message:

elimination des OVector/OMatrix au profit des TVector/TMatrix cmv 25/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/linfit.h

    r508 r514  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: linfit.h,v 1.3 1999-10-25 10:36:08 ansari Exp $
     3// $Id: linfit.h,v 1.4 1999-10-25 16:40:00 ansari Exp $
    44//
    55
     
    1010
    1111#include "machdefs.h"
    12 class OMatrix;
    13 class OVector;
     12#include "tvector.h"
    1413
    15 double LinFit(const OVector& x, const OVector& y, int nf,
    16            double (*f)(int, double), OVector& c);
     14namespace PlanckDPC {
     15
     16double LinFit(const Vector& x, const Vector& y, int nf,
     17           double (*f)(int, double), Vector& c);
    1718// fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1;
    1819
    1920
    20 double LinFit(const OMatrix& fx, const OVector& y, OVector& c);
     21double LinFit(const Matrix& fx, const Vector& y, Vector& c);
    2122// fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1,
    2223// la matrice fx contient les valeurs des f:
     
    2425                     
    2526
    26 double LinFit(const OVector& x, const OVector& y, const OVector& errY2, int nf,
    27            double (*f)(int, double), OVector& c, OVector& errC);
     27double LinFit(const Vector& x, const Vector& y, const Vector& errY2, int nf,
     28           double (*f)(int, double), Vector& c, Vector& errC);
    2829// fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1,
    2930// errY2 contient les carres des erreurs sur les Y.
     
    3132
    3233
    33 double LinFit(const OMatrix& fx, const OVector& y, const OVector& errY2,
    34            OVector& c, OVector& errC);
     34double LinFit(const Matrix& fx, const Vector& y, const Vector& errY2,
     35           Vector& c, Vector& errC);
    3536// fit lineaire des y en tant que somme de c(i)f(i,x), i=0..nf-1,
    3637// la matrice fx contient les valeurs des f:
     
    3940// au retour, errC contient les erreurs sur les coefs.
    4041
     42} // Fin du namespace
     43
    4144#endif // LINFIT_SEEN
Note: See TracChangeset for help on using the changeset viewer.