Skip to content
Snippets Groups Projects
Commit 9190d440 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

corr; tempo: leasrt sqr^4 fits

parent 80ffd75e
No related branches found
No related tags found
No related merge requests found
......@@ -388,11 +388,11 @@ void globalEvaluate( double* par, int m_dat, double* fvec,
for ( uint i=0; i<m_dat; i++) {
if (!fc->weight_y_log) {
fvec[i] = s->y[i] - fit[i];
/*
fvec[i] *= fvec[i]; // TEMPORARY
fvec[i] *= fvec[i]; // TEMPORARY
fvec[i] *= fvec[i]; // TEMPORARY
*/
} else {
if ( s->y[i] < 1e-99 || fit[i] < 1e-99 ) {
fvec[i] = 0; // just don't fit
......
......@@ -58,7 +58,7 @@ void CRange::set_from_string( const string& in )
if( s1=="*" ){
inf = -INFINITY;
} else {
if (!mystd::any2dbl(s1,&inf)){
if ( mystd::any2dbl(s1,&inf) ){
inf = -INFINITY;
throw "invalid lower bound ["+s1+"], expecting real number or '*'";
}
......@@ -66,7 +66,7 @@ void CRange::set_from_string( const string& in )
if( s2=="*" ){
sup = +INFINITY;
} else {
if (!mystd::any2dbl(s2,&sup)){
if ( mystd::any2dbl(s2,&sup) ){
sup = +INFINITY;
throw "invalid upper bound ["+s2+"], expecting real number or '*'";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment