objective_weighting.weighting_methods

Module Contents

Functions

equal_weighting(matrix)

Calculate criteria weights using objective Equal weighting method.

entropy_weighting(matrix)

Calculate criteria weights using objective Entropy weighting method.

std_weighting(matrix)

Calculate criteria weights using objective Standard deviation weighting method.

critic_weighting(matrix)

Calculate criteria weights using objective CRITIC weighting method.

gini_weighting(matrix)

Calculate criteria weights using objective Gini coefficient-based weighting method.

merec_weighting(matrix, types)

Calculate criteria weights using objective MEREC weighting method.

stat_var_weighting(matrix)

Calculate criteria weights using objective Statistical variance weighting method.

cilos_weighting(matrix, types)

Calculate criteria weights using objective CILOS weighting method.

idocriw_weighting(matrix, types)

Calculate criteria weights using objective IDOCRIW weighting method.

angle_weighting(matrix, types)

Calculate criteria weights using objective Angle weighting method.

coeff_var_weighting(matrix)

Calculate criteria weights using objective Coefficient of variation weighting method.

objective_weighting.weighting_methods.equal_weighting(matrix)[source]

Calculate criteria weights using objective Equal weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = equal_weighting(matrix)
objective_weighting.weighting_methods.entropy_weighting(matrix)[source]

Calculate criteria weights using objective Entropy weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = entropy_weighting(matrix)
objective_weighting.weighting_methods.std_weighting(matrix)[source]

Calculate criteria weights using objective Standard deviation weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = std_weighting(matrix)
objective_weighting.weighting_methods.critic_weighting(matrix)[source]

Calculate criteria weights using objective CRITIC weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = critic_weighting(matrix)
objective_weighting.weighting_methods.gini_weighting(matrix)[source]

Calculate criteria weights using objective Gini coefficient-based weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = gini_weighting(matrix)
objective_weighting.weighting_methods.merec_weighting(matrix, types)[source]

Calculate criteria weights using objective MEREC weighting method.

Parameters
  • matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

  • types (ndarray) – Vector with criteria types.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = merec_weighting(matrix, types)
objective_weighting.weighting_methods.stat_var_weighting(matrix)[source]

Calculate criteria weights using objective Statistical variance weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = stat_var_weighting(matrix)
objective_weighting.weighting_methods.cilos_weighting(matrix, types)[source]

Calculate criteria weights using objective CILOS weighting method.

Parameters
  • matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

  • types (ndarray) – Vector with criteria types.

Returns

Vector of criteria weights.

Return type

ndarray

Examples >>> weights = cilos_weighting(matrix, types)

objective_weighting.weighting_methods.idocriw_weighting(matrix, types)[source]

Calculate criteria weights using objective IDOCRIW weighting method.

Parameters
  • matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

  • types (ndarray) – Vector with criteria types.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = idocriw_weighting(matrix, types)
objective_weighting.weighting_methods.angle_weighting(matrix, types)[source]

Calculate criteria weights using objective Angle weighting method.

Parameters
  • matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

  • types (ndarray) – Vector with criteria types.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = angle_weighting(matrix, types)
objective_weighting.weighting_methods.coeff_var_weighting(matrix)[source]

Calculate criteria weights using objective Coefficient of variation weighting method.

Parameters

matrix (ndarray) – Decision matrix with performance values of m alternatives and n criteria.

Returns

Vector of criteria weights.

Return type

ndarray

Examples

>>> weights = coeff_var_weighting(matrix)