Changeset 386 in Sophya
- Timestamp:
- Aug 13, 1999, 2:36:09 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piafitting.cc
r385 r386 508 508 mFunc = new GeneralFunc(mUFNVar,mUFNPar,mFitFunc,mFitFuncDer); 509 509 mNPar = mUFNPar; 510 cout<<"Fonction utilisateur nvar="<<mUFNVar<<", npar="<<mNPar<<endl; 510 511 } else if(func[0]=='p' && mNVar==1) { //polynome 511 512 int degre=0; if(func.length()>1) sscanf(func.c_str()+1,"%d",°re); … … 908 909 , saveI1(0), saveI2(0), saveJ1(0), saveJ2(0), ErrValue(1.) 909 910 { 911 COMPATIBLE_ASSERT(mFitter); 910 912 int npar = mFitter->mNPar; 911 913 … … 925 927 926 928 int wszx = (5*bsx+5*spx)+spx; 927 int wszy = 8*(bsy+spy)+npar*(bsy+spy)+ spy;929 int wszy = 8*(bsy+spy)+npar*(bsy+spy)+2*spy; 928 930 SetSize(wszx, wszy); 929 931 int cpx,cpy; … … 931 933 // new ligne 932 934 cpx = spx; cpy = spy; 933 lab[0] = new PILabel(this,mFitter->mNObj.c_str(),4*bsx,bsy,cpx,cpy); 935 string dum = "Object: "+mFitter->mNObj+" , Fun: "+mFitter->mFName; 936 lab[0] = new PILabel(this,dum.c_str(),4*bsx,bsy,cpx,cpy); 934 937 lab[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 935 938 … … 954 957 pom[0]->AppendItem("Err cste",2102); 955 958 pom[0]->AppendItem("Err sqrt",2103); 959 pom[0]->SetValue(2101); 956 960 pom[0]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 957 961 cpx += int(1.5*bsx+spx); … … 1008 1012 pom[1]->AppendItem("X.Value",2002); 1009 1013 pom[1]->AppendItem("X.Auto",2003); 1014 pom[1]->SetValue(2001); 1010 1015 pom[1]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 1011 1016 cpx += int(1.25*bsx+spx); … … 1017 1022 pom[2]->AppendItem("Y.Value",2012); 1018 1023 pom[2]->AppendItem("Y.Auto",2013); 1024 pom[2]->SetValue(2011); 1019 1025 pom[2]->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic); 1020 1026 cpx += int(1.25*bsx+spx); … … 1221 1227 if(ReFillGData) mFitter->FillGData(); 1222 1228 ReFillGData = false; 1229 if(mFitter->mFit) mFitter->mFit->PrintStatus(); 1223 1230 } 1224 1231 else if(msg ==111) {
Note:
See TracChangeset
for help on using the changeset viewer.