Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ParabolicFunction Class Reference

A class representing a parabolic function in a potential field f(x) = a*x*x +b. More...

#include <PotentialFunctions.h>

Inheritance diagram for ParabolicFunction:

Inheritance graph
[legend]
Collaboration diagram for ParabolicFunction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ParabolicFunction (double range, double atZero)
 Constructor.

virtual PotentialfieldFunctionclone ()
 Clones a function object.


Protected Member Functions

double f (double x) const
 Computes the value of the function for a given x.

double d (double x) const
 Computes the value of the derivative of the function for a given x.

virtual double dd (double x) const
 Computes the value of the second derivative of the function for a given x.

virtual void init ()
 Computes the values of a and b.


Detailed Description

A class representing a parabolic function in a potential field f(x) = a*x*x +b.

Definition at line 250 of file PotentialFunctions.h.


Constructor & Destructor Documentation

ParabolicFunction::ParabolicFunction double  range,
double  atZero
[inline]
 

Constructor.

Parameters:
range The range of the function
atZero The value of the function for x having the value 0

Definition at line 258 of file PotentialFunctions.h.

References init().

Referenced by clone().

Here is the call graph for this function:


Member Function Documentation

virtual PotentialfieldFunction* ParabolicFunction::clone  )  [inline, virtual]
 

Clones a function object.

Returns:
A pointer to a copy of the object

Implements PotentialfieldFunction.

Definition at line 268 of file PotentialFunctions.h.

References PotentialfieldFunction::getStandardParameters(), and ParabolicFunction().

Here is the call graph for this function:

double ParabolicFunction::f double  x  )  const [inline, protected, virtual]
 

Computes the value of the function for a given x.

Parameters:
x The distance for which to compute the value of the function
Returns:
The value of the function

Reimplemented from PotentialfieldFunction.

Definition at line 280 of file PotentialFunctions.h.

double ParabolicFunction::d double  x  )  const [inline, protected, virtual]
 

Computes the value of the derivative of the function for a given x.

Parameters:
x The distance for which to compute the value of the function
Returns:
The value of the function

Reimplemented from PotentialfieldFunction.

Definition at line 289 of file PotentialFunctions.h.

virtual double ParabolicFunction::dd double  x  )  const [inline, protected, virtual]
 

Computes the value of the second derivative of the function for a given x.

Parameters:
x The distance for which to compute the value of the function
Returns:
The value of the function

Reimplemented from PotentialfieldFunction.

Definition at line 298 of file PotentialFunctions.h.

virtual void ParabolicFunction::init  )  [inline, protected, virtual]
 

Computes the values of a and b.

Reimplemented from PotentialfieldFunction.

Definition at line 304 of file PotentialFunctions.h.

Referenced by ParabolicFunction().


The documentation for this class was generated from the following file:
Generated on Thu Sep 23 20:10:27 2004 for GT2004 by doxygen 1.3.6