140 const Index npar = 8;
141 if ( pf->GetNpar() <
int(npar) ) {
142 cout << myname <<
"Function has fewer than " << npar <<
" parameters." <<
endl;
145 if ( pf->GetNpar() <
int(ipoff + npar) ) {
146 cout << myname <<
"Function has fewer than " << npar <<
" parameters after offset " 147 << ipoff <<
"." <<
endl;
150 pf->SetParName(ipoff + 0,
"R0");
151 pf->SetParName(ipoff + 1,
"R1");
152 pf->SetParName(ipoff + 2,
"R2");
153 pf->SetParName(ipoff + 3,
"R3");
154 pf->SetParName(ipoff + 4,
"R4");
155 pf->SetParName(ipoff + 5,
"R5");
156 pf->SetParName(ipoff + 6,
"R6");
157 pf->SetParName(ipoff + 7,
"QVscale");
158 pf->SetParameter(ipoff + 0, 32.40);
159 pf->SetParameter(ipoff + 1, 16.02);
160 pf->SetParameter(ipoff + 2, 8.06);
161 pf->SetParameter(ipoff + 3, 4.02);
162 pf->SetParameter(ipoff + 4, 2.00);
163 pf->SetParameter(ipoff + 5, 1.00);
164 pf->SetParameter(ipoff + 6, 1.00);
165 pf->SetParameter(ipoff + 7, 1.8*183.0);
166 if (
tol > 0.0 &&
tol < 1.0 ) {
167 double fmin = 1 -
tol;
168 double fmax = 1 +
tol;
169 for (
Index ipar=ipoff; ipar<ipoff+npar; ++ipar ) {
170 double val = pf->GetParameter(ipar);
171 pf->SetParLimits(ipar, fmin*val, fmax*val);
QTextStream & endl(QTextStream &s)