26#ifndef SCIMATH_GAUSSIAN1D_H
27#define SCIMATH_GAUSSIAN1D_H
30#include <casacore/casa/aips.h>
31#include <casacore/scimath/Functionals/Gaussian1DParam.h>
32#include <casacore/scimath/Functionals/Function1D.h>
33#include <casacore/scimath/Mathematics/AutoDiff.h>
34#include <casacore/scimath/Mathematics/AutoDiffMath.h>
193#define Gaussian1D_PS Gaussian1D
230 Gaussian1D_PS<AutoDiff<T> > &
235 virtual ~Gaussian1D_PS() {}
254 *cloneNonAD()
const {
274#ifndef CASACORE_NO_AUTO_TEMPLATES
275#include <casacore/scimath/Functionals/Gaussian1D.tcc>
276#include <casacore/scimath/Functionals/Gaussian1D2.tcc>
FunctionParam< T > param_p
The parameters and masks.
T center() const
Get or set the center ordinate of the Gaussian.
Gaussian1DParam< T > & operator=(const Gaussian1DParam< T > &other)
Copy assignment (deep copy)
T fwhm2int
Constant to scale halfwidth at 1/e to FWHM.
T width() const
Get or set the FWHM of the Gaussian.
T height() const
Get or set the peak height of the Gaussian.
virtual ~Gaussian1D_PS()
Destructor.
Gaussian1D_PS(const AutoDiff< T > &height, const AutoDiff< T > ¢er, const AutoDiff< T > &width)
virtual Function< typename FunctionTraits< AutoDiff< T > >::BaseType > * cloneNonAD() const
virtual Function< AutoDiff< T > > * clone() const
Return a copy of this object from the heap.
Gaussian1D_PS()
Constructs one dimensional Gaussians.
virtual AutoDiff< T > eval(typename Function< AutoDiff< T > >::FunctionArg x) const
Evaluate the Gaussian and its derivatives at x.
Gaussian1D_PS(const AutoDiff< T > &height, const AutoDiff< T > ¢er)
Gaussian1D_PS< AutoDiff< T > > & operator=(const Gaussian1D_PS< AutoDiff< T > > &other)
Copy assignment (deep copy)
Gaussian1D_PS(const AutoDiff< T > &height)
Gaussian1D_PS(const Gaussian1D_PS< W > &other)
Gaussian1D_PS(const Gaussian1D_PS &other)
Copy constructor (deep copy)
virtual Function< typename FunctionTraits< AutoDiff< T > >::DiffType > * cloneAD() const
virtual T eval(typename Function1D< T >::FunctionArg x) const
Evaluate the Gaussian at x.
Gaussian1D()
Constructs the one dimensional Gaussians.
virtual ~Gaussian1D()
Destructor.
Gaussian1D< T > & operator=(const Gaussian1D< T > &other)
Copy assignment (deep copy)
Gaussian1D(const Gaussian1D< T > &other)
Copy constructor (deep copy)
virtual Function< T > * clone() const
Return a copy of this object from the heap.
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
Gaussian1D(const T &height, const T ¢er, const T &width)
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
Gaussian1D(const T &height)
Gaussian1D(const T &height, const T ¢er)
Gaussian1D(const Gaussian1D< W > &other)
this file contains all the compiler specific defines
PtrHolder< T > & operator=(const PtrHolder< T > &other)