# pairwiseComparisonMatrix-methods: Function that creates Pairwise Comparions Matrix In FuzzyAHP: (Fuzzy) AHP Calculation

## Description

This methods construct object `PairwiseComparisonMatrix` based on provided `matrix`. The matrix needs to be square and reciprocal with the intensity of importance (comparisons). Since the version 0.6.9 the comparsions can be represented as either characters (e.g. "1", "9", "1/9") or numeric (e.g. 1, 9, 1/9) .

## Usage

 ```1 2 3 4``` ```pairwiseComparisonMatrix(matrix) ## S4 method for signature 'matrix' pairwiseComparisonMatrix(matrix) ```

## Arguments

 `matrix` A reciprocal square matrix with ones on the main diagonal.

## Value

An object of class `PairwiseComparisonMatrix`

 ```1 2 3 4 5 6 7``` ```comparisonMatrixValues = c("1","9","5","1/9","1","1/3","1/5","3","1") comparisonMatrix = matrix(comparisonMatrixValues, nrow = 3, ncol = 3, byrow = TRUE) matrix = pairwiseComparisonMatrix(comparisonMatrix) comparisonMatrixValues = c(1,9,5,1/9,1,1/3,1/5,3,1) comparisonMatrix = matrix(comparisonMatrixValues, nrow = 3, ncol = 3, byrow = TRUE) matrix = pairwiseComparisonMatrix(comparisonMatrix) ```