fpmas-metamodel 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
InverseUtility Class Reference

#include <cell.h>

Inheritance diagram for InverseUtility:
Inheritance graph
[legend]
Collaboration diagram for InverseUtility:
Collaboration graph
[legend]

Public Member Functions

 InverseUtility ()
 
 InverseUtility (float offset)
 
float utility (GridAttractor attractor, DiscretePoint point) const override
 
virtual float utility (GridAttractor attractor, DiscretePoint point) const =0
 

Detailed Description

Utility::INVERSE implementation.

The utility is set to 1 at the center of the attractor, and decreases to 0 at infinity with a 1/x shape such as the utility value is 0.5 at the radius of the attractor.

Constructor & Destructor Documentation

◆ InverseUtility() [1/2]

InverseUtility::InverseUtility ( )
inline

InverseUtility constructor.

Equivalent to InverseUtility(0.f).

◆ InverseUtility() [2/2]

InverseUtility::InverseUtility ( float  offset)
inline

InverseUtility constructor.

Parameters
offsetdistance at which the utility value is 1.f

Member Function Documentation

◆ utility()

float InverseUtility::utility ( GridAttractor  attractor,
DiscretePoint  point 
) const
overridevirtual

Returns an utility value associated to the specified point according to the given attractor.

Parameters
attractorAttractor from which the utility is computed
pointA discrete point of the grid environment

Implements UtilityFunction.


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