- Timestamp:
- 10/04/16 18:20:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/components/SpectralComponents/GaussianSpectralElement.h
r2980 r3106 76 76 //# Constants 77 77 // Sigma to FWHM conversion factor 78 static const Double SigmaToFWHM;78 static const casacore::Double SigmaToFWHM; 79 79 80 80 //# Constructors … … 86 86 // </thrown> 87 87 GaussianSpectralElement( 88 const Double ampl, constDouble center,89 const Double sigma88 const casacore::Double ampl, const casacore::Double center, 89 const casacore::Double sigma 90 90 ); 91 91 … … 95 95 // <li> AipsError if sigma == 0.0 96 96 // </thrown> 97 GaussianSpectralElement(const Vector<Double> ¶m);97 GaussianSpectralElement(const casacore::Vector<casacore::Double> ¶m); 98 98 // Copy constructor (deep copy) 99 99 // <thrown> … … 114 114 // GaussianSpectralElement& operator=(const GaussianSpectralElement &other); 115 115 // Evaluate the value of the element at x 116 // Double operator()(constDouble x) const;116 //casacore::Double operator()(const casacore::Double x) const; 117 117 118 Double getSigma() const;119 Double getFWHM() const;118 casacore::Double getSigma() const; 119 casacore::Double getFWHM() const; 120 120 121 Double getSigmaErr() const;122 Double getFWHMErr() const;121 casacore::Double getSigmaErr() const; 122 casacore::Double getFWHMErr() const; 123 123 124 124 125 void setSigma( Double sigma);126 void setFWHM( Double fwhm);125 void setSigma(casacore::Double sigma); 126 void setFWHM(casacore::Double fwhm); 127 127 128 void fixSigma(const Bool fix=True);128 void fixSigma(const casacore::Bool fix=True); 129 129 130 Bool fixedSigma() const;130 casacore::Bool fixedSigma() const; 131 131 132 Double getIntegral() const;132 casacore::Double getIntegral() const; 133 133 134 134 // Save to a record. For Gaussian elements, 135 135 // the width is defined as a FWHM in the record interface. 136 Bool toRecord(RecordInterface &out) const;136 casacore::Bool toRecord(RecordInterface &out) const; 137 137 138 138 // Sigma to FWHM 139 139 // Convert from sigma to FWHM and vice versa 140 140 // <group> 141 static Double sigmaFromFWHM (constDouble fwhm);141 static casacore::Double sigmaFromFWHM (const casacore::Double fwhm); 142 142 143 static Double sigmaToFWHM (constDouble sigma);143 static casacore::Double sigmaToFWHM (const casacore::Double sigma); 144 144 // </group> 145 145 146 void set(const Vector<Double>& v);146 void set(const casacore::Vector<casacore::Double>& v); 147 147 148 148 private: … … 150 150 // but the second param of the corresponding Gaussian1D function is the 151 151 // FWHM :( 152 void _set(const Vector<Double>& v);152 void _set(const casacore::Vector<casacore::Double>& v); 153 153 154 154 };
Note: See TracChangeset
for help on using the changeset viewer.