#include <PotentialFunctions.h>
Inheritance diagram for SocialFunction:
Public Member Functions | |
SocialFunction (double repC, double repOm, double attC, double attOm, double epsilon, double k) | |
Constructor. | |
virtual double | computeValue (double x, bool smooth=true) |
Computes the value of the function for a given x. | |
double | computeDerivativeValue (double x, bool smooth=false) |
Computes the value of the derivative of the function for a given x. | |
virtual PotentialfieldFunction * | clone () |
Clones a function object. | |
Private Attributes | |
double | repC |
A repulsive constant. | |
double | repOm |
A repulsive quotient. | |
double | attC |
An attractive constant. | |
double | attOm |
An attractive quotient. | |
double | epsilon |
The minimum possible x. | |
double | k |
A constant value for value computation. |
Definition at line 406 of file PotentialFunctions.h.
|
Constructor.
Definition at line 418 of file PotentialFunctions.h. Referenced by clone(). |
|
Computes the value of the function for a given x.
Reimplemented from PotentialfieldFunction. Definition at line 434 of file PotentialFunctions.h. |
|
Computes the value of the derivative of the function for a given x.
Reimplemented from PotentialfieldFunction. Definition at line 466 of file PotentialFunctions.h. |
|
Clones a function object.
Implements PotentialfieldFunction. Definition at line 478 of file PotentialFunctions.h. References attC, attOm, epsilon, PotentialfieldFunction::getStandardParameters(), k, repC, repOm, and SocialFunction(). |
Here is the call graph for this function:
|
A repulsive constant.
Definition at line 487 of file PotentialFunctions.h. Referenced by clone(), computeDerivativeValue(), and computeValue(). |
|
A repulsive quotient.
Definition at line 489 of file PotentialFunctions.h. Referenced by clone(), computeDerivativeValue(), and computeValue(). |
|
An attractive constant.
Definition at line 491 of file PotentialFunctions.h. Referenced by clone(), computeDerivativeValue(), and computeValue(). |
|
An attractive quotient.
Definition at line 493 of file PotentialFunctions.h. Referenced by clone(), computeDerivativeValue(), and computeValue(). |
|
The minimum possible x.
Definition at line 495 of file PotentialFunctions.h. Referenced by clone(), computeDerivativeValue(), and computeValue(). |
|
A constant value for value computation.
Definition at line 497 of file PotentialFunctions.h. Referenced by clone(), and computeValue(). |