|
anpcpp 0.1.0
Analytic Network Process computational library
|
Ratings-based node prioritizers (categorical or numeric). More...
#include <cstddef>#include <optional>#include <string>#include <utility>#include <variant>#include <vector>#include "anpcpp/matrix.hpp"Go to the source code of this file.
Classes | |
| struct | anpcpp::RatingCategory |
| A named rating category with an associated score in [0, 1]. More... | |
| struct | anpcpp::IdentityInterpreter |
| Pass-through interpreter (values already in [0, 1]). More... | |
| struct | anpcpp::DivideByMaxInterpreter |
| Divide each raw value by the max among present values. More... | |
| struct | anpcpp::DivideByConstantInterpreter |
| Divide each raw value by a fixed positive constant. More... | |
| struct | anpcpp::MinMaxNormalizeInterpreter |
| Map the column's [min, max] onto [0, 1]. More... | |
| struct | anpcpp::PiecewiseLinearInterpreter |
| Piecewise-linear map from raw value to [0, 1] via sorted knots. More... | |
| class | anpcpp::RatingsPrioritizer |
| Ratings table over named alternatives for one (wrt node, dest cluster). More... | |
Namespaces | |
| namespace | anpcpp |
| Analytic Network Process computational library. | |
Typedefs | |
| using | anpcpp::ScoreInterpreter = std::variant< IdentityInterpreter, DivideByMaxInterpreter, DivideByConstantInterpreter, MinMaxNormalizeInterpreter, PiecewiseLinearInterpreter > |
| Declarative raw-value → [0, 1] interpreter (JSON-serializable). | |
Functions | |
| std::vector< std::optional< double > > | anpcpp::apply_score_interpreter (const ScoreInterpreter &interpreter, const std::vector< std::optional< double > > &raw) |
Apply interpreter to a column of optional raw values. | |
Ratings-based node prioritizers (categorical or numeric).