ahp trade study tools
Project description
krispy
Matrix Operations
The following matrix operations are available to the user.
-
Matrix(upper_right)
takes the upper right triangle of a matrix to create a matrix object. -
len(my_matrix)
will give you the length of the matrix -
str(my_matrix)
intuitive. -
Matrix.from_matrix_array(my_matrix)
this accepts a matrix instead of upper right array -
my_matrix.normalized()
gives you the normalized matrix -
my_matrix.eigenvector
will give you the eigenvector of your matrix -
my_matrix.consistency
gives you the calculated consistency value
Getting Scores and Alternative Weights
-
get_scores(criteria_eigenvector, tech_spec_eigenvector1, tech_spec_eigenvector2,...)
-
get_alternative_weights(criteria_eigenvector, tech_spec_eigenvector1, tech_spec_eigenvector2,...)
Graphing
-
To graph the data & save the image (for uploading) use
graph(results, 'filename_for_saving.png')
You can send
graph
the original results, or the results from the sensitivity analysis. If you send JUST the original results, you'll need to wrap it in a list, i.e.[results]
Sensitivity Analysis
get_sensitivity(criteria_list, alt_weight_matrix)
will produce a list of results lists. can plug the array produced byget_sensitivity()
into graph.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.