Changeset 2196 for trunk/src


Ignore:
Timestamp:
06/21/11 20:14:05 (13 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): linefinder

Description: use LinearFit rather than NonlinearFitLM in STLineFinder.subtractBaseline(). this makes linefinder more than 10 times faster.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STLineFinder.cpp

    r2163 r2196  
    11091109  sdf.setData(absc,spec,std_mask);
    11101110  sdf.setExpression("poly",order);
    1111   if (!sdf.fit()) return; // fit failed, use old spectrum
     1111  if (!sdf.lfit()) return; // fit failed, use old spectrum
    11121112  spectrum=casa::Vector<casa::Float>(sdf.getResidual());
    11131113}
Note: See TracChangeset for help on using the changeset viewer.