Examples of the priority calculations

First import our functions and standard test matrices


In [3]:
import prizoo.bill as bill
import prizoo.eigen as eigen
import prizoo.examples as exs

In [4]:
exs.Ex236


Out[4]:
array([[ 1.        ,  2.        ,  6.        ],
       [ 0.5       ,  1.        ,  3.        ],
       [ 0.16666667,  0.33333333,  1.        ]])

Standard eigenvector and inconsistency


In [6]:
print(eigen.largest_eigen(exs.Ex236))
print(eigen.inconsistency(exs.Ex236))


[ 0.6  0.3  0.1]
0.0

Geometric Mean


In [7]:
print(bill.gm_priorities(exs.Ex236))


[ 1.          0.5         0.16666667]

Bill's Crazy New Method


In [8]:
print(bill.bpriorities(exs.Ex236))


[ 0.6  0.3  0.1]

In [ ]: