Changes in trunk/src/STFitter.cpp [1932:1819]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFitter.cpp
r1932 r1819 142 142 if (ncomp < 1) throw (AipsError("Need at least one gaussian to fit.")); 143 143 funcs_.resize(ncomp); 144 funcnames_.clear();145 funccomponents_.clear();146 144 for (Int k=0; k<ncomp; ++k) { 147 145 funcs_[k] = new Gaussian1D<Float>(); 148 funcnames_.push_back(expr);149 funccomponents_.push_back(3);150 146 } 151 147 } else if (expr == "poly") { 152 148 funcs_.resize(1); 153 funcnames_.clear();154 funccomponents_.clear();155 149 funcs_[0] = new Polynomial<Float>(ncomp); 156 funcnames_.push_back(expr);157 funccomponents_.push_back(ncomp);158 150 } else if (expr == "lorentz") { 159 151 if (ncomp < 1) throw (AipsError("Need at least one lorentzian to fit.")); 160 152 funcs_.resize(ncomp); 161 funcnames_.clear();162 funccomponents_.clear();163 153 for (Int k=0; k<ncomp; ++k) { 164 154 funcs_[k] = new Lorentzian1D<Float>(); 165 funcnames_.push_back(expr);166 funccomponents_.push_back(3);167 155 } 168 156 } else { … … 421 409 } 422 410 423 STFitEntry Fitter::getFitEntry() const424 {425 STFitEntry fit;426 fit.setParameters(getParameters());427 fit.setErrors(getErrors());428 fit.setComponents(funccomponents_);429 fit.setFunctions(funcnames_);430 fit.setParmasks(getFixedParameters());431 return fit;432 }
Note:
See TracChangeset
for help on using the changeset viewer.