29 #ifndef COMPONENTS_SPECTRALESTIMATE_H
30 #define COMPONENTS_SPECTRALESTIMATE_H
38 template <
class T>
class Vector;
44 class GaussianSpectralElement;
228 #ifndef CASACORE_NO_AUTO_TEMPLATES
229 #include <components/SpectralComponents/Spectral2Estimate.tcc>
230 #endif //# CASACORE_NO_AUTO_TEMPLATES
GaussianSpectralElement convertElement(const casacore::Vector< MT > &abcissa, const GaussianSpectralElement &el) const
Convert the parameters of the components in the list from pixel-based indices to the given abcissa-ve...
void setQ(const casacore::uInt q=2)
Set the number of points consider at each side of test point (i.e.
A 1-D Specialization of the Array class.
std::vector< double > Vector
casacore::Bool useWindow_p
Use window search.
const SpectralList & estimate(const casacore::Vector< MT > &ordinate, casacore::Vector< MT > *der=0)
Generate the estimates for a profile and return the list found.
void setRMS(const casacore::Double rms=0.0)
Set estimation parameters.
casacore::uInt window(const casacore::Vector< MT > &prof)
Get the window or the total spectrum.
casacore::Double a_p
Internal cashing of calculated values based on q.
const SpectralList & list() const
Return the list found.
casacore::Int windowEnd_p
void setMaxN(const casacore::uInt maxpar=MAXPAR)
Set the maximum number of estimates to find (forced to >=1; 200 default)
casacore::Int regionLow_p
Region low and high value.
~SpectralEstimate()
Destructor.
casacore::Int windowLow_p
Window low and end value.
static const casacore::uInt MAXPAR
Default maximum number of components to be found.
casacore::Double * deriv_p
The second derivatives.
void findc2(const casacore::Vector< MT > &prof)
Get the second derivatives.
SpectralEstimate(const casacore::uInt maxpar=MAXPAR)
Default constructor creates a default estimator (default max number of components to be found is 200)...
void setCutoff(const casacore::Double cutoff=0.0)
Set the amplitude cutoff for valid estimate (forced to max(0,cutoff))
casacore::Int q_p
Smoothing parameter.
void setMinSigma(const casacore::Double minsigma=0.0)
Set the minimum width allowed (forced to max(0,minsigma))
void findga(const casacore::Vector< MT > &prof)
Find the Gaussians.
bool Bool
Define the standard types used by Casacore.
casacore::Double cutoff_p
Source cutoff amplitude.
Get an initial estimate for spectral lines.
void setRegion(const casacore::Int lo, const casacore::Int hi)
Set a region [lo,hi] over which to estimate.
casacore::Int regionEnd_p
casacore::Double rms_p
rms estimate in profile
A set of SpectralElements.
TableExprNode rms(const TableExprNode &array)
SpectralList slist_p
The list of components.
casacore::uInt lprof_p
The length of the current profile being estimated.
SpectralEstimate & operator=(const SpectralEstimate &other)
Assignment (copy semantics)
Describes a Gaussian spectral line.
void setWindowing(const casacore::Bool win=false)
Do you want to look in an automatically determined window with signal? Default is false...
casacore::Double sigmin_p
The minimum Gaussian width.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.