Calculate weighted OWA functions and extending bivariate means
Project description
wowa
This package calculates weighted OWA functions and extending bivariate means" Functions are:
- py_owa: callback for sorting in general
- weightedf: symmetric base aggregator
Documentation
Installation
To install type:
$ pip install wowa
Usage of py_owa( n, x, w)
from wowa import py_owa
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: sum of x[i] * w[i]
Usage of weightedf( x, p, w, cb, L)
from wowa import weightedf
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
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.72-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726c88b9bd1cfdc90f6fe7784f20047be9f0463a3692e1b4ffd17d8b3ea231ad |
|
MD5 | 815ac8032c90859171b3694278f11c3e |
|
BLAKE2b-256 | c0cbbaa776ca59f91e7ec6ca58beafc8f004c6a5e7517091b6b4e80eb29d2e8e |