This class implements a generic cost function.
More...
#include <shortestpath.h>
|
| Cost () |
| Creates a generic cost function. Simply set the cost function to null.
|
|
| Cost (const double &, const double &) |
| Constructeur de la class Cost.
|
|
| ~Cost () |
| Destructor, empty.
|
|
void | Set (const double &, const double &) |
| Set the maximum range of the domain and the infinity value of the function when computed outside of the domain.
|
|
double | Eval (const double &) const |
| Compute the cost.
|
|
|
static const double | Infinity = 100000000.0 |
| Infinity constant, set to an arbitrary large value.
|
|
static const int | n = 50 |
| Sampling of the cost function.
|
|
|
double | c [50] |
| Array of values defining the cost within a given interval.
|
|
double | infinity |
| Maximum returned value when computing the cost with an input parameter outside authorized input interval.
|
|
double | range |
| Defines the range of input interval.
|
|
This class implements a generic cost function.
◆ Eval()
double Cost::Eval |
( |
const double & | x | ) |
const |
Compute the cost.
- Parameters
-
The documentation for this class was generated from the following files:
- E:/X/Code/Libs/LibPath/LibPath/Include/shortestpath.h
- E:/X/Code/Libs/LibPath/LibPath/Source/shortest-path-cost.cpp