Changeset 1204 in Sophya for trunk/SophyaLib/NTools/generaldata.h


Ignore:
Timestamp:
Sep 29, 2000, 12:15:55 AM (25 years ago)
Author:
ansari
Message:

pour les adaptateurs de fit cmv 29/9/00

File:
1 edited

Legend:

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

    r1110 r1204  
    138138                 double min=1.,double max=-1.,double coeff=0.8) const;
    139139  int GetMode(int var,double& mode,double min=1.,double max=-1.,double coeff=0.8) const;
    140   double PolFit(int varx,Poly& pol,int degre,bool ey=true) const;
    141   double PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2=-1,bool ez=true) const;
     140  double PolFit(int varx,Poly& pol,int degre,bool ey=true,double xc=0.) const;
     141  double PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2=-1,bool ez=true
     142               ,double xc=0.,double yc=0.) const;
    142143  GeneralFitData FitResidus(GeneralFit& gfit) const;
    143144  GeneralFitData FitFunction(GeneralFit& gfit) const;
     
    154155  virtual string        ColumnName(int k) const;
    155156  virtual string        VarList_C(const char* nomx=NULL) const;
     157
     158  enum FitErrType {DefaultError,ConstantError,SqrtError,ProporError};
     159  static double ComputeError(double val,double err,FitErrType errtype=DefaultError
     160                            ,double errscale=1.,double errmin=0.,bool nozero=false);
    156161
    157162protected:
Note: See TracChangeset for help on using the changeset viewer.