|
fpmas-metamodel 1.0
|
#include <cell.h>


Public Member Functions | |
| InverseUtility () | |
| InverseUtility (float offset) | |
| float | utility (GridAttractor attractor, DiscretePoint point) const override |
| virtual float | utility (GridAttractor attractor, DiscretePoint point) const =0 |
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.
|
inline |
InverseUtility constructor.
Equivalent to InverseUtility(0.f).
|
inline |
InverseUtility constructor.
| offset | distance at which the utility value is 1.f |
|
overridevirtual |
Returns an utility value associated to the specified point according to the given attractor.
| attractor | Attractor from which the utility is computed |
| point | A discrete point of the grid environment |
Implements UtilityFunction.