#include <PotentialFunctions.h>
Inheritance diagram for AsymptoticFunction:
Public Member Functions | |
AsymptoticFunction (double range, double atZero, double solidCenter) | |
virtual PotentialfieldFunction * | clone () |
Protected Member Functions | |
double | f (double x) const |
double | d (double x) const |
virtual double | dd (double x) const |
virtual void | init () |
Protected Attributes | |
double | solidCenter |
Definition at line 319 of file PotentialFunctions.h.
AsymptoticFunction::AsymptoticFunction | ( | double | range, | |
double | atZero, | |||
double | solidCenter | |||
) | [inline] |
Constructor
range | The range of the function | |
atZero | The value of the function for x having the value 0 | |
solidCenter | f(x) = atZero for x < solidCenter |
Definition at line 328 of file PotentialFunctions.h.
References init().
Referenced by clone().
virtual PotentialfieldFunction* AsymptoticFunction::clone | ( | ) | [inline, virtual] |
Clones a function object
Implements PotentialfieldFunction.
Definition at line 339 of file PotentialFunctions.h.
References AsymptoticFunction(), PotentialfieldFunction::atZero, PotentialfieldFunction::getStandardParameters(), PotentialfieldFunction::range, and solidCenter.
double AsymptoticFunction::d | ( | double | x | ) | const [inline, protected, virtual] |
Computes the value of the derivative of the function for a given x
x | The distance for which to compute the value of the function |
Reimplemented from PotentialfieldFunction.
Definition at line 370 of file PotentialFunctions.h.
References PotentialfieldFunction::a, and solidCenter.
virtual double AsymptoticFunction::dd | ( | double | x | ) | const [inline, protected, virtual] |
Computes the value of the second derivative of the function for a given x
x | The distance for which to compute the value of the function |
Reimplemented from PotentialfieldFunction.
Definition at line 386 of file PotentialFunctions.h.
References PotentialfieldFunction::a.
double AsymptoticFunction::f | ( | double | x | ) | const [inline, protected, virtual] |
Computes the value of the function for a given x
x | The distance for which to compute the value of the function |
Reimplemented from PotentialfieldFunction.
Definition at line 354 of file PotentialFunctions.h.
References PotentialfieldFunction::a, PotentialfieldFunction::atZero, PotentialfieldFunction::b, and solidCenter.
virtual void AsymptoticFunction::init | ( | ) | [inline, protected, virtual] |
Computes the values of a and b
Reimplemented from PotentialfieldFunction.
Definition at line 392 of file PotentialFunctions.h.
References PotentialfieldFunction::a, PotentialfieldFunction::atZero, PotentialfieldFunction::b, PotentialfieldFunction::range, and solidCenter.
Referenced by AsymptoticFunction().
double AsymptoticFunction::solidCenter [protected] |