weighted_scalarizer

desdeo_mcdm.utilities.weighted_scalarizer(xs, ws)[source]

A simple linear weight based scalarizer.

Parameters
  • xs (np.ndarray) – Values to be scalarized.

  • ws (np.ndarray) – Weights to multiply each value in the summation of xs.

Returns

An array of scalar values with length equal to the first dimension of xs.

Return type

np.ndarray