Changeset 3121 for trunk/external-alma/components
- Timestamp:
- 05/16/17 14:07:28 (8 years ago)
- Location:
- trunk/external-alma/components/SpectralComponents
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/components/SpectralComponents/CompiledSpectralElement.cc
r2980 r3121 105 105 const String& CompiledSpectralElement::getFunction() const { 106 106 // return _function; 107 std:: tr1::shared_ptr<Function<Double, Double> > f = _getFunction();107 std::shared_ptr<Function<Double, Double> > f = _getFunction(); 108 108 return dynamic_cast<CompiledFunction<Double> *>(SpectralElement::_getFunction().get())->getText(); 109 109 } … … 112 112 void CompiledSpectralElement::_setFunction(const String& function) { 113 113 //_function = function; 114 std:: tr1::shared_ptr<Function<Double, Double> > f = _getFunction();114 std::shared_ptr<Function<Double, Double> > f = _getFunction(); 115 115 CompiledFunction<Double> *cf = f.get() == 0 116 116 ? new CompiledFunction<Double>() -
trunk/external-alma/components/SpectralComponents/GaussianSpectralElement.cc
r2980 r3121 43 43 : PCFSpectralElement(SpectralElement::GAUSSIAN, 1, 0, 2*sqrt(C::ln2)/C::pi) { 44 44 _setFunction( 45 std:: tr1::shared_ptr<Gaussian1D<Double> >(45 std::shared_ptr<Gaussian1D<Double> >( 46 46 new Gaussian1D<Double>(1, 0, 1) 47 47 ) … … 54 54 ) : PCFSpectralElement(SpectralElement::GAUSSIAN, ampl, center, sigma) { 55 55 _setFunction( 56 std:: tr1::shared_ptr<Gaussian1D<Double> >(56 std::shared_ptr<Gaussian1D<Double> >( 57 57 new Gaussian1D<Double>(ampl, center, sigma*SigmaToFWHM) 58 58 ) … … 63 63 const Vector<Double> ¶m 64 64 ) : PCFSpectralElement(SpectralElement::GAUSSIAN, param) { 65 std:: tr1::shared_ptr<Gaussian1D<Double> >(65 std::shared_ptr<Gaussian1D<Double> >( 66 66 new Gaussian1D<Double>(param[AMP], param[CENTER], param[WIDTH]*SigmaToFWHM) 67 67 ); -
trunk/external-alma/components/SpectralComponents/LorentzianSpectralElement.cc
r2980 r3121 40 40 : PCFSpectralElement(SpectralElement::LORENTZIAN, Vector<Double>(3)) { 41 41 _setFunction( 42 std:: tr1::shared_ptr<Lorentzian1D<Double> >(42 std::shared_ptr<Lorentzian1D<Double> >( 43 43 new Lorentzian1D<Double>(1) 44 44 ) … … 57 57 } 58 58 _setFunction( 59 std:: tr1::shared_ptr<Lorentzian1D<Double> >(59 std::shared_ptr<Lorentzian1D<Double> >( 60 60 new Lorentzian1D<Double>(ampl, center, fwhm) 61 61 ) … … 70 70 } 71 71 _setFunction( 72 std:: tr1::shared_ptr<Lorentzian1D<Double> >(72 std::shared_ptr<Lorentzian1D<Double> >( 73 73 new Lorentzian1D<Double>(param[AMP], param[CENTER], param[WIDTH]) 74 74 ) -
trunk/external-alma/components/SpectralComponents/PCFSpectralElement.cc
r2980 r3121 207 207 // own functions in their constructors 208 208 _setFunction( 209 std:: tr1::shared_ptr<Function<Double> >(209 std::shared_ptr<Function<Double> >( 210 210 new Gaussian1D<Double>() 211 211 ) -
trunk/external-alma/components/SpectralComponents/PolynomialSpectralElement.cc
r2980 r3121 38 38 : SpectralElement(SpectralElement::POLYNOMIAL, Vector<Double>(0)) { 39 39 _setFunction( 40 std:: tr1::shared_ptr<Polynomial<Double> >(40 std::shared_ptr<Polynomial<Double> >( 41 41 new Polynomial<Double>() 42 42 ) … … 47 47 : SpectralElement(SpectralElement::POLYNOMIAL, Vector<Double>(n+1, 0.)) { 48 48 _setFunction( 49 std:: tr1::shared_ptr<Polynomial<Double> >(49 std::shared_ptr<Polynomial<Double> >( 50 50 new Polynomial<Double>(n) 51 51 ) … … 56 56 : SpectralElement(SpectralElement::POLYNOMIAL, param) { 57 57 _setFunction( 58 std:: tr1::shared_ptr<Polynomial<Double> >(58 std::shared_ptr<Polynomial<Double> >( 59 59 new Polynomial<Double>(param.size()) 60 60 ) -
trunk/external-alma/components/SpectralComponents/PowerLogPolynomialSpectralElement.cc
r2980 r3121 46 46 //_makeFunction(); 47 47 _setFunction( 48 std:: tr1::shared_ptr<PowerLogarithmicPolynomial<Double> >(48 std::shared_ptr<PowerLogarithmicPolynomial<Double> >( 49 49 new PowerLogarithmicPolynomial(n) 50 50 ) … … 57 57 //_makeFunction(); 58 58 _setFunction( 59 std:: tr1::shared_ptr<PowerLogarithmicPolynomial<Double> >(59 std::shared_ptr<PowerLogarithmicPolynomial<Double> >( 60 60 new PowerLogarithmicPolynomial<Double>(param.tovector()) 61 61 )
Note:
See TracChangeset
for help on using the changeset viewer.