NAME
BellFunc - functor (derived from FieldsFunc) for the identity
mapping
INCLUDE
include "FieldFunc.h"
SYNTAX
class BellFunc : public FieldFunc
{
VecSimple(real) prms;
public:
BellFunc ();
BellFunc (const VecSimple(real)& parameters);
void setParameters (const VecSimple(real)& parameters);
virtual NUMT operator () (const Ptv(real)& x, real t) const
{ return CAST_CONST_AWAY(BellFunc)->valuePt(x,t); }
virtual NUMT valuePt (const Ptv(real)& x, real t = DUMMY);
};
KEYWORDS
Gaussian function, bell function
DESCRIPTION
The class is a predefined functor for the Gaussian bell function.
The parameters reflect the position (the d first values) and the
width (the next d values, where d is the number of space dimen
sions); It is convenient to read the parameters and the functor
name using FieldFormat (the data member function_prm can be fed
directly into the this functor).
CONSTRUCTORS AND INITIALIZATION
There are two ways to initialize a BellFunc object: 1) call Bell
Func(prms), where prms is a vector of parameters, or 2) first
declare an empty object using the constructor without arguments
and then call setParameters(prms). Thereafter one can evaluate
the function using operator() or valuePt.
MEMBER FUNCTIONS
See class FieldFunc.
SEE ALSO
Class FieldFunc, class FieldFormat.
DEVELOPED BY
SINTEF Applied Mathematics, Oslo, Norway, and University of Oslo,
Dept. of Mathematics, Norway
AUTHOR
Hans Petter Langtangen, SINTEF/UiO