Calculate weighted OWA functions and extending bivariate means
Project description
wowa
This package calculates weighted OWA functions and extending bivariate means" Functions are:
- py_WAM: callback for sorting in general
- py_OWA: callback for
- py_user_defined: callback for
- WOWATree: symmetric base aggregator
- WAn:
- weightedOWAQuantifierBuild:
- weightedOWAQuantifier:
- ImplicitWOWA:
Documentation
Installation
To install type:
$ pip install wowa
Usage of py_OWA( n, x, w)
from wowa import py_OWA
WOWATree callback function if sorting is needed in general
Parameters
Input parameters:
Input parameters:
n: size of arrays
x[]: NumPy array of size n, float
w[]: NumPy array of size n, float
Output parameters:
double y: aggregated sum
Usage of py_WAM( n, x, w)
from wowa import py_OWA
WOWATree callback function if no sorting is needed when used in the tree
Parameters
Input parameters:
Input parameters:
n: size of arrays
x[]: NumPy array of size n, float
w[]: NumPy array of size n, float
Output parameters:
double y: aggregated sum
Usage of WOWATree( x, p, w, cb, L)
from wowa import WOWATree
Symmetric base aggregator. The weights must add to one and be non-negative.
Parameters
Input parameters:
x[]: NumPy array of inputs, size n, float
p[]: NumPy array of weights of inputs x[], size n, float
w[]: NumPy array of weights for OWA, size n, float
cb: callback function
L: number of binary tree levels. Run time = O[(n-1)L]
Output parameters:
y = weightedf, double
Usage of WAn(double * x, double * w, int L, double(*F)( double, double))
from wowa import WAn
Parameters
Input parameters:
x[]: NumPy array of inputs, size n, float
w[]: NumPy array of weights for OWA, size n, float
L: umber of binary tree levels
F: callback function
Output parameters:
y = result of tree processing, double
Usage of weightedOWAQuantifierBuild( double p[], double w[], double temp[], int *T)
from wowa import weightedOWAQuantifierBuild
Parameters
p[]: NumPy array of weights of inputs x[], size n, float
w[]: NumPy array of weights for OWA, size n, float
temp[]:
T:
Input parameters:
Output parameters:
no output
Usage of weightedOWAQuantifier(double x[], double p[], double w[], double temp[], int T);
from wowa import WOWATree
Parameters
x[]: NumPy array of inputs, size n, float
p[]: NumPy array of weights of inputs x[], size n, float
w[]: NumPy array of weights for OWA, size n, float
Input parameters:
Output parameters:
y = double
Usage of ImplicitWOWA(double x[], double p[], double w[])
from wowa import ImplicitWOWA
Parameters
Input parameters:
x[]: NumPy array of inputs, size n, float
p[]: NumPy array of weights of inputs x[], size n, float
w[]: NumPy array of weights for OWA, size n, float
Output parameters:
y = double
Test
To unit test type:
$ test/test.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wowa-0.80-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2908cb507434413d44d013ccf389cf217861a90af1952592e5ad843b80a88ba4 |
|
MD5 | 983e99f3dc3a9053908ed77b6f02c7ab |
|
BLAKE2b-256 | 83c324f40acf427eb64480ca25e7528e21641a2043acdc384d6a8aba3d6bc0e8 |