ahp_matrix: AHP matrix slot

Description Author(s) Examples

Description

ahp_matrix is a slot of ahmatrixObj class. It consists of a square pairwise comparison matrix.

Author(s)

Daryanaz Dargahi <daryanazdargahi@gmail.com>

Examples

1
2
3
4
5
6
mat <- matrix(nrow = 3, ncol = 3, data = NA)
mat[1,2] <- 5
mat[1,3] <- 2
mat[2,3] <- 7
res <- ahmatrix(mat)
ahp_matrix(res)

Example output

     [,1]      [,2] [,3]
[1,]  1.0 5.0000000    2
[2,]  0.2 1.0000000    7
[3,]  0.5 0.1428571    1

Prize documentation built on April 28, 2020, 7:48 p.m.