DiracDParam.h

Classes

DiracDParam -- A one dimensional Dirac delta function (full description)

template<class T> class DiracDParam : public Function<T>

Types

enum

HEIGHT = 0
CENTER

Interface

Public Members
DiracDParam()
explicit DiracDParam(const T &height)
DiracDParam(const T &height, const T &center)
DiracDParam(const DiracDParam<T> &other)
template <class W> DiracDParam(const DiracDParam<W> &other) : Function<T>(other)
DiracDParam<T> &operator=(const DiracDParam<T> &other)
virtual ~DiracDParam()
virtual uInt ndim() const
virtual const String &name() const

Description

Prerequisite

Etymology

A 1-dimensional Dirac delta.

Synopsis

A DiracD is described by a height and a center The value is:
      height          (|x-center| == 0.0)
      0               (|x-center| != 0.0)
The parameters are enumerated by HEIGHT, CENTER. They have default values of (1, 0).

Example

    DiracDFunction<Double> sf(5.0, 25.0);
    sf(25);            // = 5.0

Template Type Argument Requirements (T)

Thrown Exceptions

Member Description

enum

Parameter numbers

DiracDParam()
explicit DiracDParam(const T &height)
DiracDParam(const T &height, const T &center)

Constructs the DiracD, Defaults: height=1, center=0.
Warning Could not use default arguments that worked both with gcc and IRIX

DiracDParam(const DiracDParam<T> &other)
template <class W> DiracDParam(const DiracDParam<W> &other) : Function<T>(other)

Copy constructor (deep copy)

DiracDParam<T> &operator=(const DiracDParam<T> &other)

Copy assignment (deep copy)

virtual ~DiracDParam()

Destructor

virtual uInt ndim() const

virtual const String &name() const

Give name of function