|
anpcpp 0.1.0
Analytic Network Process computational library
|
Combining subnetwork alternative scores. More...
#include <map>#include <stdexcept>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | anpcpp::SynthesisOptions |
| Synthesis configuration for networks with subnetworks. More... | |
| class | anpcpp::SynthesisError |
| Thrown when synthesis or expression evaluation fails. More... | |
Namespaces | |
| namespace | anpcpp |
| Analytic Network Process computational library. | |
Enumerations | |
| enum class | anpcpp::SynthesisKind { anpcpp::Additive , anpcpp::Multiplicative , anpcpp::Custom } |
| How control-node subnetwork scores are combined. More... | |
Functions | |
| std::map< std::string, double > | anpcpp::synthesize_additive (const std::map< std::string, double > &subnet_weights, const std::map< std::string, std::map< std::string, double > > &alt_scores) |
| Weighted average synthesis (matches AnpNetwork::sum_subnetwork_formula). | |
| std::map< std::string, double > | anpcpp::synthesize_multiplicative (const std::map< std::string, double > &subnet_weights, const std::map< std::string, std::map< std::string, double > > &alt_scores) |
| Multiplicative synthesis: product of score^weight per alt, then L1-normalize. | |
| std::map< std::string, double > | anpcpp::synthesize_custom (const std::string &expression, const std::map< std::string, std::map< std::string, double > > &alt_scores, const std::vector< std::string > &alt_order) |
| Custom expression synthesis per alternative. | |
| std::map< std::string, double > | anpcpp::synthesize (const SynthesisOptions &options, const std::map< std::string, double > &subnet_weights, const std::map< std::string, std::map< std::string, double > > &alt_scores, const std::vector< std::string > &alt_order) |
| Dispatches on SynthesisOptions::kind. | |
| double | anpcpp::eval_expression (const std::string &expression, const std::map< std::string, double > &variables) |
| Evaluates a numeric expression with named variables. | |
Combining subnetwork alternative scores.