Changeset 1067


Ignore:
Timestamp:
07/04/06 11:24:55 (18 years ago)
Author:
mar637
Message:

removed the 10% edge removal in estimate. It disabled the mask. Defect ticket #49. Return false on non-converging fit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFitter.cpp

    r894 r1067  
    103103    }
    104104  }
    105   mn = 0+x_.nelements()/10;
    106   mx = x_.nelements()-x_.nelements()/10;
     105  //mn = 0+x_.nelements()/10;
     106  //mx = x_.nelements()-x_.nelements()/10;
    107107  estimator.setRegion(mn,mx);
    108108  //estimator.setWindowing(True);
     
    297297  parameters_.resize();
    298298  parameters_ = fitter.fit(x_, y_, sigma, &m_);
     299  if ( !fitter.converged() ) {
     300     return false;
     301  }
    299302  std::vector<float> ps;
    300303  parameters_.tovector(ps);
Note: See TracChangeset for help on using the changeset viewer.