casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > > Class Template Reference

Partial specialization of ChebyshevParamModeImpl for AutoDiff More...

#include <ChebyshevParam.h>

Inheritance diagram for casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >:
casacore::ChebyshevParam< AutoDiff< T > > casacore::Function1D< AutoDiff< T > > casacore::Function< T, U > casacore::Functional< FunctionTraits< T >::ArgType, U > casacore::Functional< Vector< FunctionTraits< T >::ArgType >, U >

Public Member Functions

 ChebyshevParamModeImpl_PS ()
 
 ChebyshevParamModeImpl_PS (const uInt n)
 
 ChebyshevParamModeImpl_PS (const AutoDiff< T > &min, const AutoDiff< T > &max, typename ChebyshevEnums::OutOfIntervalMode mode=ChebyshevEnums::CONSTANT, const AutoDiff< T > &defval=AutoDiff< T >(0))
 
 ChebyshevParamModeImpl_PS (const Vector< AutoDiff< T > > &coeffs, const AutoDiff< T > &min, const AutoDiff< T > &max, typename ChebyshevEnums::OutOfIntervalMode mode=ChebyshevEnums::CONSTANT, const AutoDiff< T > &defval=AutoDiff< T >(0))
 
 ChebyshevParamModeImpl_PS (uInt order, const RecordInterface &mode)
 
 ChebyshevParamModeImpl_PS (const Vector< AutoDiff< T > > &coeffs, const RecordInterface &mode)
 
 ChebyshevParamModeImpl_PS (const ChebyshevParamModeImpl_PS &other)
 
virtual void setMode (const RecordInterface &mode)
 get/set the function mode. More...
 
virtual void getMode (RecordInterface &mode) const
 
- Public Member Functions inherited from casacore::ChebyshevParam< AutoDiff< T > >
 ChebyshevParam ()
 create a zero-th order Chebyshev polynomial with the first coefficient equal to zero. More...
 
 ChebyshevParam (const uInt n)
 create an n-th order Chebyshev polynomial with the coefficients equal to zero. More...
 
 ChebyshevParam (const AutoDiff< T > &min, const AutoDiff< T > &max, ChebyshevEnums::OutOfIntervalMode mode=ChebyshevEnums::CONSTANT, const AutoDiff< T > &defval=AutoDiff< T >(0))
 create a zero-th order Chebyshev polynomical with the first coefficient equal to one. More...
 
 ChebyshevParam (const Vector< AutoDiff< T > > &coeffs, const AutoDiff< T > &min, const AutoDiff< T > &max, ChebyshevEnums::OutOfIntervalMode mode=ChebyshevEnums::CONSTANT, const AutoDiff< T > &defval=AutoDiff< T >(0))
 create a fully specified Chebyshev polynomial. More...
 
 ChebyshevParam (uInt order, const RecordInterface &mode)
 create a fully specified Chebyshev polynomial. More...
 
 ChebyshevParam (const Vector< AutoDiff< T > > &coeffs, const RecordInterface &mode)
 
 ChebyshevParam (const ChebyshevParam &other)
 create a deep copy of another Chebyshev polynomial More...
 
 ChebyshevParam (const ChebyshevParam< W > &other)
 
ChebyshevParam< AutoDiff< T > > & operator= (const ChebyshevParam< AutoDiff< T > > &other)
 make a (deep) copy of another Chebyshev polynomial More...
 
virtual ~ChebyshevParam ()
 Destructor. More...
 
void setCoefficients (const Vector< AutoDiff< T > > &coeffs)
 set the Chebyshev coefficients. More...
 
void setCoefficient (const uInt which, const AutoDiff< T > &value)
 set a particular Chebyshev coefficient. More...
 
const Vector< AutoDiff< T > > & getCoefficients () const
 return the current set of coefficients into a given Vector. More...
 
AutoDiff< T > getCoefficient (const uInt which) const
 return a particular coefficient. More...
 
uInt nCoefficients () const
 return the number of coeefficients currently loaded. More...
 
void setInterval (AutoDiff< T >xmin, AutoDiff< T >xmax)
 set the Chebyshev interval for this function. More...
 
AutoDiff< T > getIntervalMin () const
 return the minimum value for the currently Chebyshev interval. More...
 
AutoDiff< T > getIntervalMax () const
 return the maximum value for the currently Chebyshev interval. More...
 
void setOutOfIntervalMode (ChebyshevEnums::OutOfIntervalMode mode)
 set the behavior of this function when it is evaluated outside its Chebyshev interval More...
 
ChebyshevEnums::OutOfIntervalMode getOutOfIntervalMode () const
 return the behavior of this function when it is evaluated outside of its Chebyshev interval. More...
 
void setDefault (const AutoDiff< T > &val)
 set the default value of this function. More...
 
const AutoDiff< T > & getDefault () const
 return the currently set default value. More...
 
uInt order () const
 return the order of this polynomial. More...
 
virtual const Stringname () const
 Give name of function. More...
 
- Public Member Functions inherited from casacore::Function1D< AutoDiff< T > >
 Function1D ()
 Constructors. More...
 
 Function1D (const uInt n)
 
 Function1D (const Vector< AutoDiff< T > > &in)
 
 Function1D (const FunctionParam< AutoDiff< T > > &other)
 
 Function1D (const Function1D< W, X > &other)
 
virtual ~Function1D ()
 Destructor. More...
 
virtual uInt ndim () const
 Returns the number of dimensions of function. More...
 
- Public Member Functions inherited from casacore::Function< T, U >
 Function ()
 Constructors. More...
 
 Function (const uInt n)
 
 Function (const Vector< T > &in)
 
 Function (const FunctionParam< T > &other)
 
template<class W , class X >
 Function (const Function< W, X > &other)
 
virtual ~Function ()
 Destructor. More...
 
uInt nparameters () const
 Returns the number of parameters. More...
 
virtual U eval (FunctionArg x) const =0
 Evaluate the function object. More...
 
T & operator[] (const uInt n)
 Manipulate the nth parameter (0-based) with no index check. More...
 
const T & operator[] (const uInt n) const
 
virtual U operator() () const
 Evaluate this function object at xor at x, y. More...
 
virtual U operator() (const ArgType &x) const
 
virtual U operator() (const Vector< ArgType > &x) const
 
virtual U operator() (FunctionArg x) const
 
virtual U operator() (const ArgType &x, const ArgType &y) const
 
virtual U operator() (const ArgType &x, const ArgType &y, const ArgType &z) const
 
Boolmask (const uInt n)
 Manipulate the mask associated with the nth parameter (e.g. More...
 
const Boolmask (const uInt n) const
 
const FunctionParam< T > & parameters () const
 Return the parameter interface. More...
 
FunctionParam< T > & parameters ()
 
const Vector< ArgType > & argp () const
 Get arg_p and parset_p. More...
 
Bool parsetp () const
 
void lockParam ()
 Compiler cannot always find the correct 'const' version of parameter access. More...
 
void unlockParam ()
 
virtual Bool hasMode () const
 return True if the implementing function supports a mode. More...
 
ostream & print (ostream &os) const
 Print the function (i.e. More...
 
virtual Function< T, U > * clone () const =0
 Return a copy of this object from the heap. More...
 
virtual Function< typename
FunctionTraits< T >::DiffType > * 
cloneAD () const
 
virtual Function< typename
FunctionTraits< T >::BaseType > * 
cloneNonAD () const
 
- Public Member Functions inherited from casacore::Functional< FunctionTraits< T >::ArgType, U >
virtual ~Functional ()
 Destructor. More...
 
virtual U operator() (const FunctionTraits< T >::ArgType &x) const =0
 Map a Domain x into a Range y value. More...
 
- Public Member Functions inherited from casacore::Functional< Vector< FunctionTraits< T >::ArgType >, U >
virtual ~Functional ()
 Destructor. More...
 
virtual U operator() (const Vector< FunctionTraits< T >::ArgType > &x) const =0
 Map a Domain x into a Range y value. More...
 

Additional Inherited Members

- Public Types inherited from casacore::Function1D< AutoDiff< T > >
typedef const AutoDiff< T > * FunctionArg
 
- Public Types inherited from casacore::Function< T, U >
typedef FunctionTraits< T >
::ArgType 
ArgType
 
typedef const ArgTypeFunctionArg
 
- Static Public Member Functions inherited from casacore::ChebyshevParam< AutoDiff< T > >
static void derivativeCoeffs (Vector< AutoDiff< T > > &coeffs, const AutoDiff< T > &xmin=AutoDiff< T >(-1), const AutoDiff< T > &xmax=AutoDiff< T >(1))
 transform a set of Chebyshev polynomial coefficients into a set representing the series' derivative. More...
 
static void chebyshevToPower (Vector< AutoDiff< T > > &coeffs)
 convert a set of Chebyshev polynomial coefficients to power series coefficients. More...
 
static void powerToChebyshev (Vector< AutoDiff< T > > &coeffs)
 convert a set of power series coefficients to Chebyshev polynomial coefficients. More...
 
- Protected Attributes inherited from casacore::ChebyshevParam< AutoDiff< T > >
AutoDiff< T > def_p
 Default value if outside interval. More...
 
AutoDiff< T > minx_p
 Lowest interval bound. More...
 
AutoDiff< T > maxx_p
 Highest inetrval bound. More...
 
ChebyshevEnums::OutOfIntervalMode mode_p
 Out-of-interval handling type. More...
 
- Protected Attributes inherited from casacore::Function< T, U >
FunctionParam< T > param_p
 The parameters and masks. More...
 
Vector< ArgTypearg_p
 Aid for non-contiguous argument storage. More...
 
Bool parset_p
 Indicate parameter written. More...
 
Bool locked_p
 Indicate that parameters are expected to be locked from changing. More...
 
- Static Protected Attributes inherited from casacore::ChebyshevParam< AutoDiff< T > >
static Vector< Stringmodes_s
 

Detailed Description

template<class T>
class casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >

Partial specialization of ChebyshevParamModeImpl for AutoDiff

Synopsis


Warning: The name ChebyshevParamModeImpl_PS is only for cxx2html limitations;

Definition at line 442 of file ChebyshevParam.h.

Constructor & Destructor Documentation

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( )
inline

Definition at line 446 of file ChebyshevParam.h.

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( const uInt  n)
inlineexplicit

Definition at line 448 of file ChebyshevParam.h.

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( const AutoDiff< T > &  min,
const AutoDiff< T > &  max,
typename ChebyshevEnums::OutOfIntervalMode  mode = ChebyshevEnums::CONSTANT,
const AutoDiff< T > &  defval = AutoDiff<T>(0) 
)
inline

Definition at line 451 of file ChebyshevParam.h.

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( const Vector< AutoDiff< T > > &  coeffs,
const AutoDiff< T > &  min,
const AutoDiff< T > &  max,
typename ChebyshevEnums::OutOfIntervalMode  mode = ChebyshevEnums::CONSTANT,
const AutoDiff< T > &  defval = AutoDiff<T>(0) 
)
inline

Definition at line 456 of file ChebyshevParam.h.

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( uInt  order,
const RecordInterface mode 
)
inline

Definition at line 462 of file ChebyshevParam.h.

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( const Vector< AutoDiff< T > > &  coeffs,
const RecordInterface mode 
)
inline

Definition at line 464 of file ChebyshevParam.h.

template<class T >
casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::ChebyshevParamModeImpl_PS ( const ChebyshevParamModeImpl_PS< AutoDiff< T > > &  other)
inline

Definition at line 468 of file ChebyshevParam.h.

Member Function Documentation

template<class T >
virtual void casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::getMode ( RecordInterface mode) const
virtual

Reimplemented from casacore::Function< T, U >.

template<class T >
virtual void casacore::ChebyshevParamModeImpl_PS< AutoDiff< T > >::setMode ( const RecordInterface mode)
virtual

get/set the function mode.

These provide an interface to function-specific configuration or state that controls how the function calculates its values but otherwise does not qualify as a parameter. Some part of the state, for example, might have a type different from that of T. The state is passed as fields of a record, mode–the names, types and values of which are specific to the implementing function and should be documented in the implementing class. It is recommended that all possible inputs passed to this function via setMode() be considered optional such that if the record omits a legal field, that part of the state is left unchanged. Fields not recognized by the implementing class should be ignored. An exception should be thrown if a recognized field contains illegal data. The default implementations for both getMode() and setMode() ignore the input record.

Reimplemented from casacore::Function< T, U >.


The documentation for this class was generated from the following file: