Skip to main content

distance-metrics-for-mcda

Python 3 library for Multi-Criteria Decision Analysis based on distance metrics. The documentation is provided here

Installation

pip install distance-metrics-mcda

Methods

This is Python 3 library providing package distance_metrics_mcda that includes metrics that can measure alternatives distance from reference solutions in multi-criteria decision analysis. This library contains module weighting_methods with the following distance metrics:

  • Euclidean distance euclidean
  • Manhattan (Taxicab) distance manhattan
  • Hausdorff distance hausdorff
  • Correlation distance correlation
  • Chebyshev distance chebyshev
  • Standardized euclidean distance std_euclidean
  • Cosine distance cosine
  • Cosine similarity measure csm
  • Squared Euclidean distance squared_euclidean
  • Sorensen or Bray-Curtis distance bray_curtis
  • Canberra distance canberra
  • Lorentzian distance lorentzian
  • Jaccard distance jaccard
  • Dice distance dice
  • Bhattacharyya distance bhattacharyya
  • Hellinger distance hellinger
  • Matusita distance matusita
  • Squared-chord distance squared_chord
  • Pearson chi-square distance pearson_chi_square
  • Squared chi-square distance squared_chi_square

The library also provides other methods necessary for multi-criteria decision analysis, which are as follows: The TOPSIS method for multi-criteria decision analysis TOPSIS in module mcda_methods. The TOPSIS method is based on measuring the distance of alternatives from Positive Ideal Solution and Negative Ideal Solution using distance_metrics mentioned above.

Normalization techniques:

  • Linear linear_normalization
  • Minimum-Maximum minmax_normalization
  • Maximum max_normalization
  • Sum sum_normalization
  • Vector vector_normalization

Correlation coefficients:

  • Spearman rank correlation coefficient rs spearman
  • Weighted Spearman rank correlation coefficient rw weighted_spearman
  • Pearson coefficent pearson_coeff

Objective weighting methods:

  • Entropy weighting method entropy_weighting
  • CRITIC weighting method critic_weighting

Example of usage of distance-metrics-mcda are provided on GitHub in examples

Metadata

Release files for distance-metrics-mcda 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for distance-metrics-mcda 0.0.5
File Size Uploaded
distance-metrics-mcda-0.0.5.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for distance-metrics-mcda 0.0.5
File Interpreter ABI Platform
distance_metrics_mcda-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / distance-metrics-mcda-0.0.5.tar.gz

Download URL distance-metrics-mcda-0.0.5.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0de0de37a93aeff81a0f9b599bc563db33bed90d2bf55211776d78f1ec33dc53
BLAKE2b-256 checksum
How to use checksums
483375552333bb952862f40742cb9054109b3d99e977a974fa63eebedc49f763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.6

Release files / distance_metrics_mcda-0.0.5-py3-none-any.whl

Download URL distance_metrics_mcda-0.0.5-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfc33fe6a4a6f2cd330216b05a0d1f6491dd578209433c64a4da3fcd0fa684a9
BLAKE2b-256 checksum
How to use checksums
914e174f76a383bc9cecb8b2c0edd58cefea5d3e3d22f47336386425b6c986eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page