casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::HyperPlaneParam< T > Class Template Reference

Parameter handling for a hyper plane function. More...

#include <HyperPlaneParam.h>

Inheritance diagram for casa::HyperPlaneParam< T >:
casa::Function< T > casa::Functional< FunctionTraits< T >::ArgType, T > casa::Functional< Vector< FunctionTraits< T >::ArgType >, T > casa::HyperPlane< T >

List of all members.

Public Member Functions

 HyperPlaneParam (uInt m=0)
 Construct an m-dimensional hyper plane which has m parameters.
 HyperPlaneParam (const HyperPlaneParam &other)
 Copy constructor (deep copy)
template<class W >
 HyperPlaneParam (const HyperPlaneParam< W > &other)
HyperPlaneParam< T > & operator= (const HyperPlaneParam< T > &other)
 Copy assignment (deep copy)
virtual ~HyperPlaneParam ()
 Destructor.
Bool operator== (const HyperPlaneParam< T > &other) const
 Comparisons.
Bool operator!= (const HyperPlaneParam< T > &other) const
virtual const Stringname () const
 Give name of function.
virtual uInt ndim () const
 What is the dimension of the parameter list.

Detailed Description

template<class T>
class casa::HyperPlaneParam< T >

Parameter handling for a hyper plane function.

Intended use:

Internal

Review Status

Reviewed By:
wbrouw
Date Reviewed:
2004/05/25
Test programs:
tHyperPlane

Prerequisite

Synopsis

This class forms a function of the form f(x0,x1,..,xm-1) = p0*x0 + p1*x1 + ...

f(x0,x1,..,xm-1) represents a hyper plane of dimension m.

Since the HyperPlane is a Function, the derivatives can be obtained as well.

The parameter interface (see FunctionParam class), is used to provide an interface to the Fitting classes.

This class is in general used implicitly by the HyperPlane class only.

Example

    // form the hyper plane function of this form: 
    // 6*x0 + 2*x3 
     HyperPlane<Double> hyper(4); // 4-dim hyperplane
     hyper.parameters()[0] = 6;   
     hyper.parameters()[3] = 2;
     // Evaluate at x0=5, x3=7
     Vector<Double> x(4);
     x=0; x[0]=5; x[3]=7;
     cout << "Hypervalue: " << hyper(x) << endl;
     Hypervalue: 44

Template Type Argument Requirements (T)

Thrown Exceptions

Motivation

This class was created to facilitate linear constraint functions for the use of least-squares fits.

To Do

Definition at line 108 of file HyperPlaneParam.h.


Constructor & Destructor Documentation

template<class T>
casa::HyperPlaneParam< T >::HyperPlaneParam ( uInt  m = 0) [explicit]

Construct an m-dimensional hyper plane which has m parameters.

By default, the coefficients are initialized to zero. The default plane has m=0

template<class T>
casa::HyperPlaneParam< T >::HyperPlaneParam ( const HyperPlaneParam< T > &  other)

Copy constructor (deep copy)

template<class T>
template<class W >
casa::HyperPlaneParam< T >::HyperPlaneParam ( const HyperPlaneParam< W > &  other) [inline]

Definition at line 123 of file HyperPlaneParam.h.

template<class T>
virtual casa::HyperPlaneParam< T >::~HyperPlaneParam ( ) [virtual]

Destructor.


Member Function Documentation

template<class T>
virtual const String& casa::HyperPlaneParam< T >::name ( ) const [inline, virtual]

Give name of function.

Reimplemented from casa::Function< T >.

Definition at line 146 of file HyperPlaneParam.h.

template<class T>
virtual uInt casa::HyperPlaneParam< T >::ndim ( ) const [inline, virtual]

What is the dimension of the parameter list.

Implements casa::Function< T >.

Definition at line 150 of file HyperPlaneParam.h.

template<class T>
Bool casa::HyperPlaneParam< T >::operator!= ( const HyperPlaneParam< T > &  other) const [inline]

Definition at line 140 of file HyperPlaneParam.h.

template<class T>
HyperPlaneParam<T>& casa::HyperPlaneParam< T >::operator= ( const HyperPlaneParam< T > &  other)

Copy assignment (deep copy)

template<class T>
Bool casa::HyperPlaneParam< T >::operator== ( const HyperPlaneParam< T > &  other) const [inline]

Comparisons.

HyperPlanes are equal if they are of the same order and have the same parameters

Definition at line 138 of file HyperPlaneParam.h.


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