anpcpp 0.1.0
Analytic Network Process computational library
Loading...
Searching...
No Matches
Public Attributes | List of all members
anpcpp::PiecewiseLinearInterpreter Struct Reference

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.
 

Detailed Description

Piecewise-linear map from raw value to [0, 1] via sorted knots.

Outside the knot range, scores are clamped to the endpoint y values.


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