aimsalgo  5.0.5
Neuroimaging image processing
aims::PointsDistribution::ForceFunction Class Referenceabstract

Utility force class for sphere_distribution. More...

#include <aims/points_distribution/points_distribution.h>

Inheritance diagram for aims::PointsDistribution::ForceFunction:

Public Member Functions

 ForceFunction ()
 
virtual ~ForceFunction ()
 
virtual Point3df force (const Point3df &p1, const Point3df &p2, bool has_link)=0
 Force between 2 points. More...
 
virtual double energy (const Point3df &p1, const Point3df &p2, bool has_link)=0
 Energy of the force between 2 points. More...
 

Detailed Description

Utility force class for sphere_distribution.

Individual force and energy between 2 points

Definition at line 64 of file points_distribution.h.

Constructor & Destructor Documentation

◆ ForceFunction()

aims::PointsDistribution::ForceFunction::ForceFunction ( )
inline

Definition at line 67 of file points_distribution.h.

◆ ~ForceFunction()

virtual aims::PointsDistribution::ForceFunction::~ForceFunction ( )
inlinevirtual

Definition at line 68 of file points_distribution.h.

References energy(), and force().

Member Function Documentation

◆ energy()

virtual double aims::PointsDistribution::ForceFunction::energy ( const Point3df p1,
const Point3df p2,
bool  has_link 
)
pure virtual

Energy of the force between 2 points.

Energy functions are the integral of corresponding forces - they are used to drive the minimization.

Implemented in aims::PointsDistribution::CoulombAndRestoringForce, and aims::PointsDistribution::CoulombForce.

Referenced by aims::PointsDistribution::CoulombAndRestoringForce::~CoulombAndRestoringForce(), aims::PointsDistribution::CoulombForce::~CoulombForce(), and ~ForceFunction().

◆ force()


The documentation for this class was generated from the following file: