webd/aggregation

Aggregation functions

Installs: 1 886

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/webd/aggregation

0.0.2 2018-08-02 08:47 UTC

This package is auto-updated.

Last update: 2025-09-20 00:13:54 UTC


README

PHP implementation of aggregation operators

Currently available:

  • Weigted Ordered Weighted Aggregation (WOWA)

To come:

  • Ordered Weigted Average (OWA)
  • Choquet's integral

Installation

composer require webd/aggregation

Usage

require "vendor/autoload.php";

use Aggregation\WOWA;

$w = array(0.1, 0.2, 0.3, 0.4, 0.0);
$p = array(0.1, 0.2, 0.3, 0.4, 0.0);
$values = array(0.4, 0.2, 0.3, 0.1, 0.0);
echo WOWA::wowa($w, $p, $values);