ahp-criteria-helper
Version:
A simple package that helps to find the weights of n criteria, and also calculate your consistency ratio.
20 lines • 621 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.randomConsistencyIndex = void 0;
var randomConsistencyIndex = function (numberOfCriteria) {
if (numberOfCriteria > 11)
throw new Error("Sorry, this package still can't calculate the consistency with more than 11 criteria");
return {
2: 0,
3: 0.58,
4: 0.9,
5: 1.12,
6: 1.24,
7: 1.32,
8: 1.41,
9: 1.45,
10: 1.49,
}[numberOfCriteria];
};
exports.randomConsistencyIndex = randomConsistencyIndex;
//# sourceMappingURL=random-consistency-index.js.map