https://github.com/tdebatty/php-aggregation-operators
PHP implementations of Weighted Ordered Weighted Aggregation (WOWA), Ordered Weighted Averaging (OWA), etc.
https://github.com/tdebatty/php-aggregation-operators
Last synced: 10 months ago
JSON representation
PHP implementations of Weighted Ordered Weighted Aggregation (WOWA), Ordered Weighted Averaging (OWA), etc.
- Host: GitHub
- URL: https://github.com/tdebatty/php-aggregation-operators
- Owner: tdebatty
- Created: 2013-08-27T14:39:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T08:48:18.000Z (over 7 years ago)
- Last Synced: 2025-01-15T07:11:47.469Z (12 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-aggregation-operators
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
```php
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);
```