|
anpcpp 0.1.0
Analytic Network Process computational library
|
Piecewise-linear map from raw value to [0, 1] via sorted knots. More...
#include <ratings.hpp>
Public Attributes | |
| std::vector< std::pair< double, double > > | knots |
| Knots (x, y); sorted by x ascending on use. | |
Piecewise-linear map from raw value to [0, 1] via sorted knots.
Outside the knot range, scores are clamped to the endpoint y values.