anpcpp 0.1.0
Analytic Network Process computational library
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
inconsistency.hpp File Reference

Saaty consistency index and ratio for pairwise matrices. More...

#include <cstddef>
#include "anpcpp/eigen.hpp"
#include "anpcpp/matrix.hpp"

Go to the source code of this file.

Classes

struct  anpcpp::ConsistencyOptions
 Options for consistency. More...
 
struct  anpcpp::ConsistencyResult
 Full consistency analysis result. More...
 

Namespaces

namespace  anpcpp
 Analytic Network Process computational library.
 

Functions

double anpcpp::random_index (std::size_t n)
 Saaty random index (RI) for matrix order n.
 
double anpcpp::consistency_index (double lambda_max, std::size_t n)
 Consistency index CI = (lambda_max - n) / (n - 1).
 
double anpcpp::consistency_ratio (double lambda_max, std::size_t n)
 Consistency ratio CR = CI / RI.
 
ConsistencyResult anpcpp::consistency (const Matrix &mat, ConsistencyOptions options={})
 Computes Saaty CI and CR for a pairwise comparison matrix.
 
double anpcpp::consistency_index (const Matrix &mat, ConsistencyOptions options={})
 Consistency index from a matrix (throws on non-convergence).
 
double anpcpp::consistency_ratio (const Matrix &mat, ConsistencyOptions options={})
 Consistency ratio from a matrix (throws on non-convergence).
 

Detailed Description

Saaty consistency index and ratio for pairwise matrices.