MBSim

Project Page
Public Member Functions | Protected Member Functions | Protected Attributes
MBSim::edgePolyFrustumCriteria Class Reference
Inheritance diagram for MBSim::edgePolyFrustumCriteria:
MBSim::CriteriaFunction

List of all members.

Public Member Functions

 edgePolyFrustumCriteria (const double &tolerance_=1e-10)
 Constructor.
virtual ~edgePolyFrustumCriteria ()
 Destructor.
void setFrustumHeight (const double &frustumHeight_)
 set frustum height
void setStartingXCoordinate (const double &ax_)
 set starting x coordinate
void setdirectionXCoordinate (const double &dx_)
 set starting x coordinate
virtual int operator() (const fmatvec::Vec &x)
 computes the criteria
virtual bool isBetter (const fmatvec::Vec &x)
 compares the result of given vector with the last result and returns if it got better (for damping)
virtual void clear ()
 deletes the list of criteria results
const std::vector< double > & getResults ()

Protected Member Functions

bool inBounds (const double &t)
 checks if current point fullfills the boundary conditions

Protected Attributes

double tolerance
 tolerance value for the criteria results
double frustumHeight
 height of frustum
std::vector< double > criteriaResults
 saves the results of the criteria
double ax
 xPosition of starting Point
double dx
 xdirection

Member Function Documentation

virtual int MBSim::edgePolyFrustumCriteria::operator() ( const fmatvec::Vec &  vector) [virtual]

computes the criteria

The criteria has to fulfill at least:

  • result = 0: the criteria is fulfilled and should stop
  • result = 1: the algorithm should go on
  • result = 2: the algorithm has slow convergence and should stop
  • result = -1: the algorithm diverges and should stop

Implements MBSim::CriteriaFunction.


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