Calculation of (Social Survey) Hierarchical Analysis in Economic Information Students

zhaozj2021-02-16  48

If you are familiar with those judgment tories inside level analysis, it should be easy to understand the following programs !!

The program given by the teacher can only count a judgment matrix. In this case, if you have a lot of layers in the end, you have to come, to calculate the total CR, it is really trouble. This program solves this trouble. You can enter the contents and information of these matrices in this program, and then you can get a small CI value.

You can also get the total CI value, thereby calculating the total CR value, eventually preparing for you, in fact, it is also convenient for you to construct the judgment matrix of the life life (sometimes if you really touch CR> 0.1), If you use the teacher's program, you really want to be mad, use this program, there will be no such concerns !! Please see

Contributing the original code:

#include void main () {int count; cout << "Please enter the total number of this layer:"; cin >> count; double * por; por = new double [count]; int C; cout < <"Please enter their respective weights:"; for (c = 0; c > POR [C]; int = new int = new int [count]; double * cicount; Cicount = new double [count]; for (q = 0; q > n; double ** Martrix; double ** copy; martrix = new double * [n]; copy = new double * [n]; for (i = 0; i

COUT << "Please enter matrix:" << endl; for (i = 0; i > Martrix [J]; copy [j] = MARTRIX [J];} double * m; m = new double [n]; for (i = 0; i

转载请注明原文地址:https://www.9cbs.com/read-25015.html

New Post(0)